Budget: 1000 UAH Deadline: 1 day
Good day.
I propose to implement a bot on Node.js and TypeScript. The key point regarding deleted messages is resolved as follows: the Telegram Business API supports receiving events of the type deleted_business_messages, but they only contain the ID of the deleted message. To know what exactly was deleted, it is necessary to store all incoming messages in a database, for example, PostgreSQL, at the moment they are received. When receiving a deletion event, the backend takes the ID, finds the original text in the database, and forwards it to a separate chat. Edited messages are tracked through the edited_business_message event. I have previously created similar backend systems for message history storage and monitoring. We will discuss the details of the architecture and timelines in private messages.