I want to know an example of removing message or file like a photo
I did not find any functional tutorial in this regard,
If the bot is an administrator in a supergroup, it can delete messages from any other user and service messages about people joining or leaving the group (other types of service messages may only be removed by the group creator). In channels, bots can only remove their own messages.
On the Telegram desktop app: Select “Advanced” from the Settings window that appears on your screen. Under the “Data and Storage” section, select “Manage local storage.” Adjust the slider under the “Clear files” option and click Save on the bottom right corner of the window to apply the changes.
There is no such functionality in Telegram Bot API right now.
UPD 2017-05-19: There is an official method deleteMessage, more info: https://core.telegram.org/bots/api#deletemessage
https://stackoverflow.com/a/43965602/1140438
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With