messages.AffectedHistory

class pyrogram.raw.types.messages.AffectedHistory

Affected part of communication history with the user or in a chat.

Constructor of AffectedHistory.

Details:
  • Layer: 194

  • ID: B45C69D1

Parameters:
  • pts (int 32-bit) – Number of events occurred in a text box

  • pts_count (int 32-bit) – Number of affected events

  • offset (int 32-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 7 functions.

messages.DeleteHistory

Deletes communication history.

messages.ReadMentions

Mark mentions as read

messages.UnpinAllMessages

Unpin all pinned messages

messages.ReadReactions

Mark message reactions » as read

messages.DeleteSavedHistory

Deletes messages forwarded from a specific peer to saved messages ».

channels.DeleteParticipantHistory

Delete all messages sent by a specific participant of a given supergroup

channels.DeleteTopicHistory

Delete message history of a forum topic