mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 21:20:22 +03:00
Forcing named arguments
This commit is contained in:
parent
9dd406c7a4
commit
5ee2f8833e
|
@ -30,6 +30,7 @@ class Keyboard:
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
buttons: list[AnyButton] | list[list[AnyButton]],
|
buttons: list[AnyButton] | list[list[AnyButton]],
|
||||||
|
*,
|
||||||
resize: bool,
|
resize: bool,
|
||||||
single_use: bool,
|
single_use: bool,
|
||||||
selective: bool,
|
selective: bool,
|
||||||
|
@ -58,7 +59,7 @@ class InlineKeyboard:
|
||||||
class HiddenKeyboard:
|
class HiddenKeyboard:
|
||||||
__slots__ = ("_raw",)
|
__slots__ = ("_raw",)
|
||||||
|
|
||||||
def __init__(self, selective: bool) -> None:
|
def __init__(self, *, selective: bool) -> None:
|
||||||
self._raw = types.ReplyKeyboardHide(selective=selective)
|
self._raw = types.ReplyKeyboardHide(selective=selective)
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,7 +67,7 @@ class ForcedReplyKeyboard:
|
||||||
__slots__ = ("_raw",)
|
__slots__ = ("_raw",)
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, single_use: bool, selective: bool, placeholder: Optional[str]
|
self, *, single_use: bool, selective: bool, placeholder: Optional[str]
|
||||||
) -> None:
|
) -> None:
|
||||||
self._raw = types.ReplyKeyboardForceReply(
|
self._raw = types.ReplyKeyboardForceReply(
|
||||||
single_use=single_use, selective=selective, placeholder=placeholder
|
single_use=single_use, selective=selective, placeholder=placeholder
|
||||||
|
|
Loading…
Reference in New Issue
Block a user