Option to Disable Automatic Database Logging of Updates
🎉 Feature Request
Summary
I noticed that the library automatically inserts all updates into the database, which is handled in the DB.php file.
However, in my case, this behavior leads to unnecessary data accumulation in my database, as I don’t need to log all updates. Is there a way to disable or customize this behavior without modifying the core library files?
While not ideal you might simply add a trigger or schedule in the database to clean the table periodically
You can extend a new class from Telegram.php and another one from DB.php, change them however you like, and then use those classes in your codes instead of the main ones.
I've done something similar here:
https://github.com/FourteenDev/telegram-bot-wordpress-plugin-boilerplate/tree/main/src/Telegram/ExtendedClasses
@jacklul @Koorosh14, Thank you both for your help.