Layer 227
MessagesCheckUrlAuthMatchCode
Validate the match code selected by the user against the code shown on the login page, as part of the OAuth authorization flow.
method
Users
messages.checkUrlAuthMatchCode#c9a47b0b url:string match_code:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Url | string | The OAuth deep link |
| MatchCode | string | The emoji or code selected by the user from the list in url Auth Result Request. match_codes |
Returns
BoolGogram Example
// MessagesCheckUrlAuthMatchCode - positional arguments result, err := client.MessagesCheckUrlAuthMatchCode("Hello, World!", "Hello, World!") if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | URL_INVALID | Invalid URL provided. |