Layer 224
method Users
messages.acceptUrlAuth#67a3f0de flags:# write_allowed:flags.0?true share_phone_number:flags.3?true peer:flags.1?InputPeer msg_id:flags.1?int button_id:flags.1?int url:flags.2?string match_code:flags.4?string = UrlAuthResult;

Parameters

Name Type Description
WriteAllowed flags.0?true Set this flag to allow the bot to send messages to you (if requested)
SharePhoneNumber flags.3?true
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
MatchCode flags.4?string

Returns

UrlAuthResult

Gogram Example

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

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