pyrobale.objects.inlinekeyboardmarkupΒΆ
ClassesΒΆ
Module ContentsΒΆ
- class pyrobale.objects.inlinekeyboardmarkup.InlineKeyboardMarkup[source]ΒΆ
-
- add_button(text, callback_data=None, url=None, web_app=None, copy_text_button=None, **kwargs)[source]ΒΆ
Adds a button to the inline keyboard.
- Parameters:
text (str) β The text to display on the button.
callback_data (str, optional) β The callback data to send when the button is clicked.
url (str, optional) β The URL to open when the button is clicked.
web_app (WebAppInfo OR string, optional) β The web app to open when the button is clicked.
copy_text_button (CopyTextButton OR string, optional) β The copy text button to add to the button.
- Returns:
The updated InlineKeyboardMarkup object.
- Return type: