telegram api method · layer 229 · #894cc99c

messages.requestUrlAuth

usable by users

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

definition

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?string

returns

UrlAuthResult

errors (5)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400URL_EXPIREDThe specified OAuth request has expired.
400URL_INVALIDInvalid URL provided.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
500OAUTH_REQUEST_INVALIDThe specified OAuth request is invalid.

history

present in layers 100–229 · constructor id changed 2×

idlayers
#e33f5613100–124
#198fb446125–222
#894cc99c223–229