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
):