ChatMember¶
-
class
pyrogram.types.ChatMember¶ Contains information about one member of a chat.
- Parameters
user (
User) – Information about the user.status (
str) – The member’s status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”.title (
str, optional) – A custom title that will be shown to all members instead of “Owner” or “Admin”. Creator (owner) and administrators only. Can be None in case there’s no custom title set.until_date (
int, optional) – Restricted and kicked only. Date when restrictions will be lifted for this user; unix time.joined_date (
int, optional) – Date when the user joined, unix time. Not available for creator.invited_by (
User, optional) – Administrators and self member only. Information about the user who invited this member. In case the user joined by himself this will be the same as “user”.promoted_by (
User, optional) – Administrators only. Information about the user who promoted this member as administrator.restricted_by (
User, optional) – Restricted and kicked only. Information about the user who restricted or kicked this member.is_member (
bool, optional) – Restricted only. True, if the user is a member of the chat at the moment of the request.is_anonymous (
bool, optional) – True, if the user’s presence in the chat is hidden. Owner and administrators only.can_be_edited (
bool, optional) – Administrators only. True, if you are allowed to edit administrator privileges of the user.can_post_messages (
bool, optional) – Administrators only. Channels only. True, if the administrator can post messages in the channel.can_edit_messages (
bool, optional) – Administrators only. Channels only. True, if the administrator can edit messages of other users and can pin messages.can_delete_messages (
bool, optional) – Administrators only. True, if the administrator can delete messages of other users.can_restrict_members (
bool, optional) – Administrators only. True, if the administrator can restrict, ban or unban chat members.can_promote_members (
bool, optional) – Administrators only. 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).can_change_info (
bool, optional) – Administrators and restricted only. True, if the user is allowed to change the chat title, photo and other settings.can_invite_users (
bool, optional) – Administrators and restricted only. True, if the user is allowed to invite new users to the chat.can_pin_messages (
bool, optional) – Administrators and restricted only. Groups and supergroups only. True, if the user is allowed to pin messages.can_send_messages (
bool, optional) – Restricted only. True, if the user is allowed to send text messages, contacts, locations and venues.can_send_media_messages (
bool, optional) – Restricted only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.can_send_stickers (
bool, optional) – True, if the user is allowed to send stickers, implies can_send_media_messages.can_send_animations (
bool, optional) – True, if the user is allowed to send animations (GIFs), implies can_send_media_messages.can_send_games (
bool, optional) – True, if the user is allowed to send games, implies can_send_media_messages.can_use_inline_bots (
bool, optional) – True, if the user is allowed to use inline bots, implies can_send_media_messages.can_add_web_page_previews (
bool, optional) – Restricted only. True, if the user is allowed to add web page previews to their messages.can_send_polls (
bool, optional) – Restricted only. True, if the user is allowed to send polls.