Layer 231
InputInlineButtonTypeUrlAuth
Inline button that authorizes the user on a website via Telegram Login, as passed when creating a keyboard.
constructor
inputInlineButtonTypeUrlAuth#9961bcb4 flags:# request_write_access:flags.0?true fwd_text:flags.1?string url:string bot:flags.2?InputUser = InlineButtonType;
Parameters
| Name | Type | Description |
|---|---|---|
| RequestWriteAccess | flags.0?true | Whether to request permission for the bot to send messages to the user |
| FwdText | flags.1?string | Button text used when the message is forwarded |
| Url | string | URL to open |
| Bot | flags.2?InputUser | Bot that will be used to authorize the user on the website |
Returns
InlineButtonTypeGogram Example
// Creating InputInlineButtonTypeUrlAuth constructor obj := &tg.InputInlineButtonTypeUrlAuth{ Url: "https://example.com", // Optional fields: // RequestWriteAccess: true, // FwdText: "example", // Bot: &tg.InputUserSelf{}, }