Skip to content

deleteMessages

Sahri Riza Umami edited this page Mar 14, 2017 · 4 revisions

Deletes messages.

deleteMessages(chat_id, message_ids)

UpdateDeleteMessages will not be sent for messages deleted through that function.

Option Description
chat_id Chat identifier.
message_ids Identifiers of messages to delete.

Example

  • Deletes message with id 212.

    deleteMessages(1234567890, {[0] = 212})
  • Deletes messages number 212 and 101.

    deleteMessages(1234567890, {[0] = 212, 101})

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally