Layer 220
constructor

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Text string Button label
FwdText flags.0?string New text of the button in forwarded messages.
Url string An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data. NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
ButtonId int ID of the button to pass to messages. request Url Auth

Returns

KeyboardButton

Gogram Example

// Creating KeyboardButtonUrlAuth constructor
obj := &tg.KeyboardButtonUrlAuth{
    Text: "...",
    Url: "...",
    ButtonId: 0,

    // Optional fields:
    // FwdText: "...",
}