Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading