Deleting all messages from a specific user #3586
-
when replied to a message in a group with "deleteall" command the bot must be able to delete all the previous messages of the user atleast for the past 48 hours how can i do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You need to store all incoming message ids from the user and iterate over that list |
Beta Was this translation helpful? Give feedback.
-
There is a way You can get the ID of the message when the user sent the command to delete the message and go back in reverse |
Beta Was this translation helpful? Give feedback.
You need to store all incoming message ids from the user and iterate over that list