• Delete communication history (for private chats and legacy groups)

    Parameters

    • client: ITelegramClient
    • chat: InputPeerLike
    • Optionalparams: {
          maxId?: number;
          mode: "delete" | "revoke" | "clear";
      }
      • OptionalmaxId?: number

        Maximum ID of message to delete.

        0, i.e. remove all messages
        
      • mode: "delete" | "revoke" | "clear"

        Deletion mode. Can be:

        • delete: delete messages (only for yourself) AND the dialog itself
        • clear: delete messages (only for yourself), but keep the dialog in the list
        • revoke: delete messages for all users
        'delete'
        

    Returns Promise<void>