Raw.InputKeyboardButtonUrlAuth

Raw.InputKeyboardButtonUrlAuth

Button to request a user to authorize via url using seamless telegram login.

inputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton;
export namespace Raw {
  export class InputKeyboardButtonUrlAuth {
    constructor(params: {
      requestWriteAccess?: boolean;
      text: string;
      fwdText?: string;
      url: string;
      bot: Raw.TypeInputUser;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xd02e7fd4

Property

  • requestWriteAccess : boolean or undefined

    Set this flag to request the permission for your bot to send messages to the user.

  • text : string

    Button text

  • fwdText : string or undefined

    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: you must always check the hash of the received data to verify the authentication and the integrity of the data as described in checking authorization.

  • bot : Raw.TypeInputUser

    Username of a bot, which will be used for user authorization. see setting up a bot for more details. if not specified, the current bot’s username will be assumed. the url’s domain must be the same as the domain linked with the bot. see linking your domain to the bot for more details.