mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update aiogram/utils/keyboard.py
Co-authored-by: Suren Khorenyan <surenkhorenyan@gmail.com>
This commit is contained in:
parent
222d48ea09
commit
1dca31ab6d
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ class KeyboardBuilder(Generic[ButtonType], ABC):
|
|||
if not isinstance(size, int):
|
||||
raise ValueError("Only int sizes are allowed")
|
||||
if size not in range(self.min_width, self.max_width + 1):
|
||||
raise ValueError(f"Row size {size} are not allowed")
|
||||
raise ValueError(f"Row size {size} is not allowed, range: [{self.min_width}, {self.max_width}]")
|
||||
return size
|
||||
|
||||
def export(self) -> List[List[ButtonType]]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue