Chat Member

class bale.ChatMember(status, user, is_member, can_change_info, can_post_messages, can_edit_messages, can_delete_messages, can_invite_users, can_restrict_members, can_pin_messages, can_promote_members, can_send_messages, can_send_media_messages, can_reply_to_story, can_send_link_message, can_send_forwarded_message, can_see_members, can_add_story, can_be_edited)

Bases: BaleObject

This object shows a member in chat.

user

Information about the chat member.

Type:

bale.User

status

The member’s status in the chat.

Type:

str

can_be_edited

True, if the bot is allowed to edit administrator privileges of that user.

Type:

bool

can_change_info

True, if the user can change the chat title, photo and other settings.

Type:

bool

can_post_messages

True, if the administrator can post messages in the channel, or access channel statistics; channels only.

Type:

bool

can_edit_messages

True, if the administrator can edit messages of other users and can pin messages; channels only.

Type:

bool

can_delete_messages

True, if the administrator can delete messages of other users.

Type:

bool

can_invite_users

True, if the user can invite new users to the chat.

Type:

bool

can_restrict_members

True, if the administrator can restrict, ban or unban chat members.

Type:

bool

can_pin_messages

True, if the user is allowed to pin messages, groups, channels only.

Type:

bool

can_promote_members

True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).

Type:

bool

can_send_messages

True, if the user is allowed to send messages.

Type:

bool

can_send_media_messages

True, if the user is allowed to send a media message.

Type:

bool

can_reply_to_story

True, if the user is allowed to reply to a story.

Type:

bool

True, if the user is allowed to send a link message.

Type:

bool

can_send_forwarded_message

True, if the user is allowed to forward a message to chat.

Type:

bool

can_see_members

True, if the user is allowed to see the list of chat members.

Type:

bool

can_add_story

True, if the user is allowed to post a story from chat.

Type:

bool