messages.checkUrlAuthMatchCode #

Validate the match code selected by the user against the code shown on the login page, as part of the OAuth authorization flow ».

Only usable when both match_codes and match_codes_first are set in the urlAuthResultRequest returned by messages.requestUrlAuth.
If boolTrue is returned, proceed with the login flow and pass the verified code to messages.acceptUrlAuth.match_code.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.checkUrlAuthMatchCode#c9a47b0b url:string match_code:string = Bool;

Parameters #

NameTypeDescription
urlstringThe OAuth deep link
match_codestringThe emoji or code selected by the user from the list in urlAuthResultRequest.match_codes

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400URL_INVALIDInvalid URL provided.

urlAuthResultRequest #

Details about the authorization request, for more info click here »

Seamless Telegram Login #

Handle Seamless Telegram Login URL authorization requests.

messages.requestUrlAuth #

Get more info about a Seamless Telegram Login authorization request, for more info click here »

boolTrue #

The constructor can be interpreted as a booleantrue value.

messages.acceptUrlAuth #

Use this to accept a Seamless Telegram Login authorization request, for more info click here »