messages.AffectedHistory¶
- class pyrogram.raw.types.messages.AffectedHistory[source]¶
Affected part of communication history with the user or in a chat.
Constructor of
AffectedHistory.- Details:
Layer:
229ID:
B45C69D1
- Parameters:
pts (
int32-bit) – Number of events occurred in a text boxpts_count (
int32-bit) – Number of affected eventsoffset (
int32-bit) – If a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease
- Functions:
This object can be returned by 8 functions.
Deletes communication history.
Mark mentions as read; can be used in forums but cannot be used in monoforums.
Unpin all pinned messages
Mark message reactions » as read
Deletes messages from a monoforum topic », or deletes messages forwarded from a specific peer to saved messages ».
Delete message history of a forum topic
Mark all unread poll votes » in a chat as read
Delete all messages sent by a specific participant of a given supergroup