Skip to content

deleteMessagesFromUser

Sahri Riza Umami edited this page Dec 15, 2016 · 1 revision

Deletes all messages in the chat sent by the specified user.

deleteMessagesFromUser(chat_id, user_id)

Works only in supergroup channel chats, needs appropriate privileges.

Option Description
chat_id Chat identifier
user_id User identifier

Example

Deletes all messages in the chat 1234567890 sent by 133780085.

deleteMessagesFromUser(1234567890, 133780085)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally