pyrobale.objects.replykeyboardmarkup¶
Classes¶
Represents a reply keyboard. |
Module Contents¶
- class pyrobale.objects.replykeyboardmarkup.ReplyKeyboardMarkup[source]¶
Represents a reply keyboard. .. attribute:: Each dictionary contains the following keys
keyboard (list): A list of lists of dictionaries representing the buttons in the keyboard.
text (str): The text of the button.
request_contact (bool, optional): If True, the user’s phone number will be sent.
request_location (bool, optional): If True, the user’s location will be sent.
web_app (WebApp, optional): The web app associated with the button.
- add_button(text, request_contact=None, request_location=None, web_app=None)[source]¶
Add a button to the current row.
- Parameters:
text (str)
request_contact (bool)
request_location (bool)
web_app (Union[pyrobale.objects.webappinfo.WebAppInfo, str])