ChatMemberBanned#

class aiogram.types.chat_member_banned.ChatMemberBanned(*, status: str = 'kicked', user: User, is_anonymous: Optional[bool] = None, custom_title: Optional[str] = None, can_be_edited: Optional[bool] = None, can_manage_chat: Optional[bool] = None, can_delete_messages: Optional[bool] = None, can_manage_video_chats: Optional[bool] = None, can_restrict_members: Optional[bool] = None, can_promote_members: Optional[bool] = None, can_change_info: Optional[bool] = None, can_invite_users: Optional[bool] = None, can_post_messages: Optional[bool] = None, can_edit_messages: Optional[bool] = None, can_pin_messages: Optional[bool] = None, can_manage_topics: Optional[bool] = None, is_member: Optional[bool] = None, can_send_messages: Optional[bool] = None, can_send_media_messages: Optional[bool] = None, can_send_polls: Optional[bool] = None, can_send_other_messages: Optional[bool] = None, can_add_web_page_previews: Optional[bool] = None, until_date: datetime, **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: str#

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

user: User#

Information about the user

until_date: datetime.datetime#

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