messages.acceptUrlAuth

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

 125 қабаты бойынша әдіс схемасы қолжетімді. Ауыстыру »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
write_allowed flags.0?true Set this flag to allow the bot to send messages to you (if requested)
share_phone_number flags.3?true Set this flag to share the user's phone number with the bot (if requested via urlAuthResultRequest.request_phone_number and consented to by the user)
peer flags.1?InputPeer The location of the message
msg_id flags.1?int Message ID of the message with the login button
button_id flags.1?int ID of the login button
url flags.2?string URL used for link URL authorization, click here for more info »
match_code flags.4?string If urlAuthResultRequest.match_codes was set, the emoji or code selected by the user from the provided list; must always be provided when match_codes is set, even if match_codes_first was set and the code was already validated via messages.checkUrlAuthMatchCode

Result

UrlAuthResult

Only users can use this method

Related pages

urlAuthResultRequest

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

Seamless Telegram Login

Handle Seamless Telegram Login URL authorization requests.

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.