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.

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

Parameters

Name Type Description
url string The OAuth deep link
match_code string The emoji or code selected by the user from the list in urlAuthResultRequest.match_codes

Result

Bool

Only users can use this method

Possible errors

Code Type Description
400 URL_INVALID Invalid URL provided.

Related pages

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 »