Layer 227
constructor
keyboardButtonUrlAuth#f51006f9 flags:# style:flags.10?KeyboardButtonStyle text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton;

Parameters

Name Type Description
Style flags .10? KeyboardButtonStyle Button style, see here for more info on button styles.
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{
    Style: nil,
    Text: "Hello, World!",
    FwdText: "Hello, World!",
    Url: "Hello, World!",
    ButtonId: 42,
}