Source code for pyrobale.objects.inlinekeyboardbutton

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from .webappdata import WebAppData
    from .copytextbutton import CopyTextButton


[docs] class InlineKeyboardButton: """Represents a button in an inline keyboard.""" def __init__( self, text: str, url: str = None, callback_data: str = None, web_app: "WebAppData" = None, copy_text_button: "CopyTextButton" = None, **kwargs ):
[docs] self.text = text
[docs] self.url = url
[docs] self.callback_data = callback_data
[docs] self.web_app = web_app
[docs] self.copy_text_button = copy_text_button