Layer 227
MessagesRequestUrlAuth
Get more info about a Seamless Telegram Login authorization request, for more info click here
method
Users
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 |
|---|---|---|
| Peer | flags .1? InputPeer | Peer where the message is located |
| MsgId | flags .1? int | The message |
| ButtonId | flags .1? int | The ID of the button with the authorization request |
| Url | flags .2? string | URL used for link URL authorization, click here for more info |
| InAppOrigin | flags .3? string | For 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) |
Returns
UrlAuthResultGogram Example
// MessagesRequestUrlAuth - positional arguments result, err := client.MessagesRequestUrlAuth(nil, nil, nil, "Hello, World!", "Hello, World!") if err != nil { // handle error } // result is *tg.UrlAuthResult
Possible Errors
| Code | Type | Description |
|---|---|---|
| 500 | OAUTH_REQUEST_INVALID | The specified OAuth request is invalid. |
| 400 | URL_EXPIRED | The specified OAuth request has expired. |
| 400 | URL_INVALID | Invalid URL provided. |