messages.acceptUrlAuth

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

urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult;
urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult;
urlAuthResultDefault#a9d6db1f = UrlAuthResult;
---functions---
messages.acceptUrlAuth#f729ea98 flags:# write_allowed:flags.0?true peer:InputPeer msg_id:int button_id:int = UrlAuthResult;

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)
peer InputPeer The location of the message
msg_id int Message ID of the message with the login button
button_id int ID of the login button

Result

UrlAuthResult

Possible errors

Code Type Description
400 BOT_METHOD_INVALID This method can't be used by a bot

Related pages

Seamless Telegram Login

Handle Seamless Telegram Login URL authorization requests.