yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.3k stars 1.5k forks source link

listen for message deletion #1029

Closed officialdakari closed 1 year ago

officialdakari commented 1 year ago

Question I'm making a bridge bot and I want to listen whether a message is deleted. is there any way to do so?

danielperez9430 commented 1 year ago

The Telegram Bot API don't send any event related to the deleted messages. Maybe you can store all the ids of the messages in the database and using a userbot (tdlib or similar) you can do a check every day or similar of the list of the messages... but I think is not too easy

adougies commented 7 months ago

I notice TDLib does have an event to listen for message deletion (updateDeleteMessages), can this now be achieved in NTBA? Can't use TDLib due to some issues.