Layer 220
method Users
messages.acceptUrlAuth#b12c7125 flags:# write_allowed:flags.0?true 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
WriteAllowed flags.0?true Set this flag to allow the bot to send messages to you (if requested)
Peer flags.1?InputPeer The location of the message
MsgId flags.1?int Message ID of the message with the login button
ButtonId flags.1?int ID of the login button
Url flags.2?string URL used for link URL authorization, click here for more info

Returns

UrlAuthResult

Gogram Example

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

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