Skip to content

Commit

Permalink
Merge pull request #2394 from pnwclw/patch-1
Browse files Browse the repository at this point in the history
Fixed typing for `request_name` parameter
  • Loading branch information
Badiboy authored Sep 3, 2024
2 parents 08afe40 + 3776367 commit 290b8d3
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 290b8d3

Please sign in to comment.