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
PeerInputPeerClass—Peer where the message is located
MsgIDint—The message
ButtonIDint—The ID of the button with the authorization request
URLstring—URL used for link URL authorization, click here for more info »
InAppOriginstring—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​

URLAuthResultClass

References​