diff --git a/aiogram/utils/keyboard.py b/aiogram/utils/keyboard.py index 8ff8463f..2f529c60 100644 --- a/aiogram/utils/keyboard.py +++ b/aiogram/utils/keyboard.py @@ -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]]: