Layer 224
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

Returns

UrlAuthResult

Gogram Example

// MessagesRequestUrlAuth - using Params struct
result, err := client.MessagesRequestUrlAuth(&tg.MessagesRequestUrlAuthParams{

    // Optional fields:
    // Peer: &tg.InputPeerUser{UserID: int64(777000)},
    // MsgId: 42,
    // ButtonId: 42,
    // Url: "Hello, World!",
    // ...
})
if err != nil {
    // handle error
}
// result is *tg.UrlAuthResult