messages.DeleteHistory

class pyrogram.raw.functions.messages.DeleteHistory

Deletes communication history.

Details:
  • Layer: 194

  • ID: B08F922A

Parameters:
  • peer (InputPeer) – User or chat, communication history of which will be deleted

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

  • just_clear (bool, optional) – Just clear history for the current user, without actually removing messages for every chat user

  • revoke (bool, optional) – Whether to delete the message history for all chat participants

  • 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