AffectedHistory

class pyrogram.raw.types.messages.AffectedHistory

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

Constructor type of AffectedHistory.

Details
  • Layer: 126

  • ID: 0xb45c69d1

Parameters
  • pts (int 32-bit) – Number of events occured 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.

Methods

This object can be returned by 4 methods:

messages.DeleteHistory

Deletes communication history.

messages.ReadMentions

Mark mentions as read.

messages.UnpinAllMessages

Unpin all pinned messages.

channels.DeleteUserHistory

Delete all messages sent by a certain user in a supergroup.