ChatMemberBanned

class aiogram.types.chat_member_banned.ChatMemberBanned(*, status: Literal[ChatMemberStatus.KICKED] = ChatMemberStatus.KICKED, user: User, until_date: _datetime_serializer, return_type=int, when_used=unless - none)], **extra_data: Any)[source]

Represents a chat member that was banned in the chat and can’t return to the chat or view chat messages.

Source: https://core.telegram.org/bots/api#chatmemberbanned

status: Literal[ChatMemberStatus.KICKED]

The member’s status in the chat, always ‘kicked’

user: User

Information about the user

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

until_date: DateTime

Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever