ChatMemberBanned¶
- class telegram.ChatMemberBanned(user, until_date, *, api_kwargs=None)[source]¶
Bases:
telegram.ChatMember
Represents a chat member that was banned in the chat and can’t return to the chat or view chat messages.
Returned In
Added in version 13.7.
- Parameters:
user (
telegram.User
) – Information about the user.until_date (
datetime.datetime
) –Date when restrictions will be lifted for this user.
Changed in version 20.3: The default timezone of the bot is used for localization, which is UTC unless
telegram.ext.Defaults.tzinfo
is used.
- until_date[source]¶
Date when restrictions will be lifted for this user.
Changed in version 20.3: The default timezone of the bot is used for localization, which is UTC unless
telegram.ext.Defaults.tzinfo
is used.- Type: