Closed OurWin closed 1 year ago
For such purposes you need this https://github.com/php-telegram-bot/core/blob/develop/doc/01-utils.md#initialisation And here select the database that you have https://github.com/Seldaek/monolog/blob/main/doc/02-handlers-formatters-processors.md#log-to-databases And if it doesn’t work, then make a function that will send a message and then log it to the database
As @iyamk has suggested, the bot does not log sent messages automatically, you'll need to do that yourself.
Hello everyone,
I have a script that automatically sends a message to my users when an action is performed on my server.
The message is sent successfully, but the message is not recorded in the database. Any ideas? :)
Here is the script: