Skip to content

deleteChatMessagesByDate

Function · TDLib 1.8.67 · d1085f9c

Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted

deleteChatMessagesByDate(
  chat_id: int53,
  min_date: int32,
  max_date: int32,
  revoke: Bool
) → Ok

chat_id

int53

Chat identifier

min_date

int32

The minimum date of the messages to delete

max_date

int32

The maximum date of the messages to delete

revoke

Bool

Pass true to delete chat messages for all users; private chats only