ChatEvent¶
- class pyrogram.types.ChatEvent¶
A chat event from the recent actions log (also known as admin log).
See
actionto know which kind of event this is and the relative attributes to get the event content.- Parameters:¶
id (
int) – Chat event identifier.date (
datetime) – Date of the event.action (
ChatEventAction) – Event action.user (
User) – User that triggered the event.old_description, new_description (
str, optional) – Previous and new chat description. ForDESCRIPTION_CHANGEDaction only.old_history_ttl, new_history_ttl (
int, optional) – Previous and new chat history TTL. ForHISTORY_TTL_CHANGEDaction only.old_linked_chat, new_linked_chat (
Chat, optional) – Previous and new linked chat. ForLINKED_CHAT_CHANGEDaction only.old_photo, new_photo (
Photo, optional) – Previous and new chat photo. ForPHOTO_CHANGEDaction only.old_title, new_title (
str, optional) – Previous and new chat title. ForTITLE_CHANGEDaction only.old_username, new_username (
str, optional) – Previous and new chat username. ForUSERNAME_CHANGEDaction only.old_chat_permissions, new_chat_permissions (
ChatPermissions, optional) – Previous and new default chat permissions. ForCHAT_PERMISSIONS_CHANGEDaction only.deleted_message (
Message, optional) – Deleted message. ForMESSAGE_DELETEDaction only.old_message, new_message (
Message, optional) – Previous and new message before it has been edited. ForMESSAGE_EDITEDaction only.invited_member (
ChatMember, optional) – New invited chat member. ForMEMBER_INVITEDaction only.old_administrator_privileges, new_administrator_privileges (
ChatMember, optional) – Previous and new administrator privileges. ForADMINISTRATOR_PRIVILEGES_CHANGEDaction only.old_member_permissions, new_member_permissions (
ChatMember, optional) – Previous and new member permissions. ForMEMBER_PERMISSIONS_CHANGEDaction only.stopped_poll (
Message, optional) – Message containing the stopped poll. ForPOLL_STOPPEDaction only.invites_enabled (
bool, optional) – If chat invites were enabled (True) or disabled (False). ForINVITES_ENABLEDaction only.history_hidden (
bool, optional) – If chat history has been hidden (True) or unhidden (False). ForHISTORY_HIDDENaction only.signatures_enabled (
bool, optional) – If message signatures were enabled (True) or disabled (False). ForSIGNATURES_ENABLEDaction only.old_slow_mode, new_slow_mode (
int, optional) – Previous and new slow mode value in seconds. ForSLOW_MODE_CHANGEDaction only.pinned_message (
Message, optional) – Pinned message. ForMESSAGE_PINNEDaction only.unpinned_message (
Message, optional) – Unpinned message. ForMESSAGE_UNPINNEDaction only.old_invite_link, new_invite_link (
ChatInviteLink, optional) – Previous and new edited invite link. ForINVITE_LINK_EDITEDaction only.revoked_invite_link (
ChatInviteLink, optional) – Revoked invite link. ForINVITE_LINK_REVOKEDaction only.deleted_invite_link (
ChatInviteLink, optional) – Deleted invite link. ForINVITE_LINK_DELETEDaction only.created_forum_topic (
ForumTopic, optional) – New forum topic. ForCREATED_FORUM_TOPICaction only.old_forum_topic, new_forum_topic (
ForumTopic, optional) – Edited forum topic. ForEDITED_FORUM_TOPICaction only.deleted_forum_topic (
ForumTopic, optional) – Deleted forum topic. ForDELETED_FORUM_TOPICaction only.