telegram.replykeyboardmarkup module

This module contains an object that represents a Telegram ReplyKeyboardMarkup.

class telegram.replykeyboardmarkup.ReplyKeyboardMarkup(keyboard, resize_keyboard=False, one_time_keyboard=False, selective=False, **kwargs)

Bases: telegram.replymarkup.ReplyMarkup

This object represents a Telegram ReplyKeyboardMarkup.

keyboard

List[List[telegram.KeyboardButton]]

resize_keyboard

bool

one_time_keyboard

bool

selective

bool

Parameters:
  • keyboard (List[List[str]]) –
  • **kwargs – Arbitrary keyword arguments.
Keyword Arguments:
 
  • resize_keyboard (Optional[bool]) –
  • one_time_keyboard (Optional[bool]) –
  • selective (Optional[bool]) –
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.ReplyKeyboardMarkup

to_dict()