messages.DeleteSavedHistory#

class pyrogram.raw.functions.messages.DeleteSavedHistory#

Deletes messages from a monoforum topic , or deletes messages forwarded from a specific peer to saved messages .

Details:
  • Layer: 220

  • ID: 4DC5085F

Parameters:
  • peer (InputPeer) – Peer, whose messages will be deleted from saved messages », or the ID of the topic.

  • max_id (int 32-bit) – Maximum ID of message to delete

  • parent_peer (InputPeer, optional) – If set, affects the messages of the passed monoforum topic », otherwise affects saved messages ».

  • min_date (int 32-bit, optional) – Delete all messages newer than this UNIX timestamp

  • max_date (int 32-bit, optional) – Delete all messages older than this UNIX timestamp

Returns:

messages.AffectedHistory