diff --git a/telebot/types.py b/telebot/types.py index 513921fbd..bb2ab22fc 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -2892,7 +2892,7 @@ def __init__(self, keyboard=None, row_width=3): self.row_width: int = row_width self.keyboard: List[List[InlineKeyboardButton]] = keyboard or [] - def add(self, *args, row_width=None) -> 'InlineKeyboardMarkup': + def add(self, *args: InlineKeyboardButton, row_width: Optional[int] = None) -> 'InlineKeyboardMarkup': """ This method adds buttons to the keyboard without exceeding row_width.