Skip to content

deleteChatHistory

Function · TDLib 1.8.67 · d1085f9c

Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat

deleteChatHistory(
  chat_id: int53,
  remove_from_chat_list: Bool,
  revoke: Bool
) → Ok

chat_id

int53

Chat identifier

remove_from_chat_list

Bool

Pass true to remove the chat from all chat lists

revoke

Bool

Pass true to delete chat history for all users