Raw.ReplyKeyboardMarkup

Raw.ReplyKeyboardMarkup

Bot keyboard

replyKeyboardMarkup#85dd99d1 flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true persistent:flags.4?true rows:Vector<KeyboardButtonRow> placeholder:flags.3?string = ReplyMarkup;
export namespace Raw {
  export class ReplyKeyboardMarkup {
    constructor(params: {
      resize?: boolean;
      singleUse?: boolean;
      selective?: boolean;
      persistent?: boolean;
      rows: Array<Raw.TypeKeyboardButtonRow>;
      placeholder?: string;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x85dd99d1

Property

  • resize : boolean or undefined

    Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). if not set, the custom keyboard is always of the same height as the app’s standard keyboard.

  • singleUse : boolean or undefined

    Requests clients to hide the keyboard as soon as it’s been used. the keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again.

  • selective : boolean or undefined

    Use this parameter if you want to show the keyboard to specific users only. targets: 1) users that are @mentioned in the text of the message object; 2) if the bot’s message is a reply (has replyToMessageId), sender of the original message.example: a user requests to change the bot’s language, bot replies to the request with a keyboard to select the new language. other users in the group don’t see the keyboard.

  • persistent : boolean or undefined

    Requests clients to always show the keyboard when the regular keyboard is hidden.

  • rows : Array of Raw.TypeKeyboardButtonRow

    Button row

  • placeholder : string or undefined

    The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.