Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassPeer where the message is located
MsgIDintThe message
ButtonIDintThe ID of the button with the authorization request
URLstringURL used for link URL authorization, click here for more info »
InAppOriginstringFor 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

URLAuthResultClass

References