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.
- 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_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