telegram api method · layer 229 · #894cc99c
messages.requestUrlAuth
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
peer | InputPeer | Peer where the message is located |
msg_id | int | The message |
button_id | int | The ID of the button with the authorization request |
url | string | URL used for link URL authorization, click here for more info » |
in_app_origin | string |
returns
errors (5)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | URL_EXPIRED | The specified OAuth request has expired. |
| 400 | URL_INVALID | Invalid URL provided. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 500 | OAUTH_REQUEST_INVALID | The specified OAuth request is invalid. |
history
present in layers 100–229 · constructor id changed 2×
| id | layers |
|---|---|
| #e33f5613 | 100–124 |
| #198fb446 | 125–222 |
| #894cc99c | 223–229 |