From 377636774d7d5eaa1d5b49ebbd094c2d96361103 Mon Sep 17 00:00:00 2001 From: pnwclw <45664035+pnwclw@users.noreply.github.com> Date: Mon, 2 Sep 2024 22:38:59 +0200 Subject: [PATCH] Fixed typing for `request_name` parameter --- telebot/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index 70907aa1f..8b4c30469 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -2561,13 +2561,13 @@ class KeyboardButtonRequestUsers(Dictionaryable): """ def __init__( self, request_id: int, user_is_bot: Optional[bool]=None, user_is_premium: Optional[bool]=None, - max_quantity: Optional[int]=None, request_name: Optional[str]=None, request_username: Optional[bool]=None, + max_quantity: Optional[int]=None, request_name: Optional[bool]=None, request_username: Optional[bool]=None, request_photo: Optional[bool]=None) -> None: self.request_id: int = request_id self.user_is_bot: Optional[bool] = user_is_bot self.user_is_premium: Optional[bool] = user_is_premium self.max_quantity: Optional[int] = max_quantity - self.request_name: Optional[str] = request_name + self.request_name: Optional[bool] = request_name self.request_username: Optional[bool] = request_username self.request_photo: Optional[bool] = request_photo @@ -10856,4 +10856,4 @@ def de_json(cls, json_string): obj = cls.check_json(json_string) return cls(**obj) - \ No newline at end of file +