Skip to content

Commit

Permalink
Added the field emoji_status_expiration_date to the class Chat.
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2020official committed Aug 18, 2023
1 parent 35e765f commit 1acb15f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ class Chat(JsonDeserializable):
Returned only in getChat.
:type emoji_status_custom_emoji_id: :obj:`str`
:param emoji_status_expiration_date: Optional. Expiration date of the emoji status of the other party in a private chat,
if any. Returned only in getChat.
:type emoji_status_expiration_date: :obj:`int`
:param bio: Optional. Bio of the other party in a private chat. Returned only in getChat.
:type bio: :obj:`str`
Expand Down Expand Up @@ -638,7 +642,7 @@ def __init__(self, id, type, title=None, username=None, first_name=None,
can_set_sticker_set=None, linked_chat_id=None, location=None,
join_to_send_messages=None, join_by_request=None, has_restricted_voice_and_video_messages=None,
is_forum=None, active_usernames=None, emoji_status_custom_emoji_id=None,
has_hidden_members=None, has_aggressive_anti_spam_enabled=None, **kwargs):
has_hidden_members=None, has_aggressive_anti_spam_enabled=None, emoji_status_expiration_date=None, **kwargs):
self.id: int = id
self.type: str = type
self.title: str = title
Expand Down Expand Up @@ -667,6 +671,7 @@ def __init__(self, id, type, title=None, username=None, first_name=None,
self.emoji_status_custom_emoji_id: str = emoji_status_custom_emoji_id
self.has_hidden_members: bool = has_hidden_members
self.has_aggressive_anti_spam_enabled: bool = has_aggressive_anti_spam_enabled
self.emoji_status_expiration_date: int = emoji_status_expiration_date


class MessageID(JsonDeserializable):
Expand Down

0 comments on commit 1acb15f

Please sign in to comment.