Budget: 5000 UAH Deadline: 3 days
Hello, Bohdan! I have experience in developing complex Telegram solutions and clearly understand the specifics of working with the Telegram Business API. Your task regarding logging edited and deleted messages is technically understandable and can be implemented by connecting a business account to your bot.
Briefly about my experience:
I develop bots in Python (aiogram 3.x) and Node.js. I have created logging and activity monitoring systems in groups and channels, as well as integrated third-party APIs for automating business processes.
How I plan to implement tracking (response to the key point):
Edited messages: I will use the edited_business_message handler. With each change, the bot receives an updated message object, which we compare with the original (stored in a database, for example, SQLite or Redis) and log the difference.
Deleted messages: Since the Telegram Business API sends updates when the status of a message changes, we will track deletion events via webhooks. The key approach is caching message IDs. When a signal about the deletion of a specific message_id comes in, the bot immediately forwards a copy of that message from the database to your separate log bot.
Architecture: For speed, I will use Redis as an intermediate storage for instant access to message text before deletion.
Examples of similar projects:
I developed an anti-scam system for TG groups that recorded any changes in content by moderators and users in real-time.
I am ready to discuss the limits of the Business API and choose the optimal stack for your project.