Skip to content

Commit

Permalink
Fixed typing for request_name parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pnwclw authored Sep 2, 2024
1 parent 08afe40 commit 3776367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -10856,4 +10856,4 @@ def de_json(cls, json_string):
obj = cls.check_json(json_string)
return cls(**obj)



0 comments on commit 3776367

Please sign in to comment.