Update consts.py
This commit is contained in:
parent
9507f5814e
commit
3b3e27cb1a
|
@ -17,9 +17,14 @@ class DefaultConstructor:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _create_kb(
|
def _create_kb(
|
||||||
actions: List[Union[str, Dict[str, Union[str, bool, KeyboardButtonPollType]]]],
|
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:
|
) -> ReplyKeyboardMarkup:
|
||||||
kb = ReplyKeyboardMarkup()
|
kb = ReplyKeyboardMarkup(
|
||||||
|
resize_keyboard=resize_keyboard, selective=selective, one_time_keyboard=one_time_keyboard
|
||||||
|
)
|
||||||
kb.row_width = max(schema)
|
kb.row_width = max(schema)
|
||||||
btns = []
|
btns = []
|
||||||
# noinspection DuplicatedCode
|
# noinspection DuplicatedCode
|
||||||
|
|
Loading…
Reference in New Issue
Block a user