Layer 220
method Users
messages.requestUrlAuth#198fb446 flags:# peer:flags.1?InputPeer msg_id:flags.1?int button_id:flags.1?int url:flags.2?string = UrlAuthResult;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
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

Returns

UrlAuthResult

Gogram Example

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

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