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.

New in version 13.7.

Parameters:
status[source]

The member’s status in the chat, always 'kicked'.

Type:

str

user[source]

Information about the user.

Type:

telegram.User

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:

datetime.datetime