messages.requestUrlAuth
Get more info about a Seamless Telegram Login authorization request, for more info click here »
func (c *Client) MessagesRequestURLAuth(ctx context.Context, request *MessagesRequestURLAuthRequest) (URLAuthResultClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesRequestURLAuth(ctx, &tg.MessagesRequestURLAuthRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // URLAuthResultClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | — | Peer where the message is located |
MsgID | int | — | The message |
ButtonID | int | — | The ID of the button with the authorization request |
URL | string | — | URL used for link URL authorization, click here for more info » |
InAppOrigin | 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
References
- Official documentation
- Generated Go reference
- TL definition:
messages.requestUrlAuth#894cc99c