messages.requestUrlAuth #

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

Layer 223

urlAuthResultRequest#f8f8eb1e flags:# request_write_access:flags.0?true request_phone_number:flags.1?true match_codes_first:flags.5?true bot:User domain:string browser:flags.2?string platform:flags.2?string ip:flags.2?string region:flags.2?string match_codes:flags.3?Vector<string> user_id_hint:flags.4?long = UrlAuthResult;
urlAuthResultAccepted#623a8fa0 flags:# url:flags.0?string = UrlAuthResult;
urlAuthResultDefault#a9d6db1f = UrlAuthResult;
---functions---
messages.requestUrlAuth#894cc99c flags:# peer:flags.1?InputPeer msg_id:flags.1?int button_id:flags.1?int url:flags.2?string in_app_origin:flags.3?string = UrlAuthResult;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
peerflags.1?InputPeerPeer where the message is located
msg_idflags.1?intThe message
button_idflags.1?intThe ID of the button with the authorization request
urlflags.2?stringURL used for link URL authorization, click here for more info »
in_app_originflags.3?stringFor OAuth authorization from mini apps »: the origin of the webview that originated the OAuth request, in the format scheme://host (or scheme://host:port for non-default ports)

Result #

UrlAuthResult

Only users can use this method #

Possible errors #

CodeTypeDescription
500OAUTH_REQUEST_INVALIDThe specified OAuth request is invalid.
400URL_EXPIREDThe specified OAuth request has expired.
400URL_INVALIDInvalid URL provided.

Seamless Telegram Login #

Handle Seamless Telegram Login URL authorization requests.