Chat Member

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

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, optional

can_change_info

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

Type:

bool, optional

can_post_messages

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

Type:

bool, optional

can_edit_messages

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

Type:

bool, optional

can_delete_messages

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

Type:

bool, optional

can_invite_users

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

Type:

bool, optional

can_restrict_members

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

Type:

bool, optional

can_pin_messages

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

Type:

bool, optional

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, optional

can_send_messages

True, if the user is allowed to send messages.

Type:

bool, optional

can_send_media_messages

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

Type:

bool, optional

can_reply_to_story

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

Type:

bool, optional

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

Type:

bool, optional

can_send_forwarded_message

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

Type:

bool, optional

can_see_members

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

Type:

bool, optional

can_add_story

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

Type:

bool, optional