Update consts.py

This commit is contained in:
Forden 2021-07-06 16:42:41 +03:00 committed by GitHub
parent 9507f5814e
commit 3b3e27cb1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,9 +17,14 @@ class DefaultConstructor:
@staticmethod
def _create_kb(
actions: List[Union[str, Dict[str, Union[str, bool, KeyboardButtonPollType]]]],
schema: List[int]
schema: List[int],
resize_keyboard: bool = True,
selective: bool = False,
one_time_keyboard: bool = False
) -> ReplyKeyboardMarkup:
kb = ReplyKeyboardMarkup()
kb = ReplyKeyboardMarkup(
resize_keyboard=resize_keyboard, selective=selective, one_time_keyboard=one_time_keyboard
)
kb.row_width = max(schema)
btns = []
# noinspection DuplicatedCode