You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far it's just a question. I've been using the library for over a year and everything has always worked fine. However, recently errors have started appearing in the logs that weren't there before. Here are some examples of errors:
[09-Aug-2024 23:56:39] PHP Fatal error: Uncaught TypeError: Longman\TelegramBot\DB::insertChat(): Argument #1 ($chat) must be of type Longman\TelegramBot\Entities\Chat, null given, called in /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php on line 1296 and defined in /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php:492
Stack trace:
#0 /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php(1296): Longman\TelegramBot\DB::insertChat()
#1 /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php(579): Longman\TelegramBot\DB::insertMessageRequest()
#2 /var/www/bot.local/vendor/longman/telegram-bot/src/Telegram.php(655): Longman\TelegramBot\DB::insertRequest()
#3 /var/www/bot.local/vendor/longman/telegram-bot/src/Telegram.php(568): Longman\TelegramBot\Telegram->processUpdate()
#4 /var/www/bot.local/hook-ghzfp4y52g5b7d5.php(72): Longman\TelegramBot\Telegram->handle()
#5 {main}
thrown in /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php on line 492
and
[16-Aug-2024 22:37:50] PHP Fatal error: Uncaught TypeError: Longman\TelegramBot\DB::insertEditedMessageRequest(): Argument #1 ($edited_message) must be of type Longman\TelegramBot\Entities\Message, Longman\TelegramBot\Entities\Message\InaccessibleMessage given, called in /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php on line 862 and defined in /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php:1471
Stack trace:
#0 /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php(862): Longman\TelegramBot\DB::insertEditedMessageRequest()
#1 /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php(603): Longman\TelegramBot\DB::insertCallbackQueryRequest()
#2 /var/www/bot.local/vendor/longman/telegram-bot/src/Telegram.php(655): Longman\TelegramBot\DB::insertRequest()
#3 /var/www/bot.local/vendor/longman/telegram-bot/src/Telegram.php(568): Longman\TelegramBot\Telegram->processUpdate()
#4 /var/www/bot.local/hook-ghzfp4y52g5b7d5.php(72): Longman\TelegramBot\Telegram->handle()
#5 {main}
thrown in /var/www/bot.local/vendor/longman/telegram-bot/src/DB.php on line 1471
If I perform actions in the bot from several accounts, then there are no problems. Probably, this occurs with other users, so I do not know how to recreate this problem. But I would like to understand why it occurs.
Additionally: earlier, almost a year ago, I had php-telegram-bot 0.80.0 and it worked on Ubuntu 22.04 + PHP 8.1 and I have never seen such errors in the logs.
The text was updated successfully, but these errors were encountered:
🐞 Bug Report
Required Information
Summary
So far it's just a question. I've been using the library for over a year and everything has always worked fine. However, recently errors have started appearing in the logs that weren't there before. Here are some examples of errors:
and
If I perform actions in the bot from several accounts, then there are no problems. Probably, this occurs with other users, so I do not know how to recreate this problem. But I would like to understand why it occurs.
Additionally: earlier, almost a year ago, I had php-telegram-bot 0.80.0 and it worked on Ubuntu 22.04 + PHP 8.1 and I have never seen such errors in the logs.
The text was updated successfully, but these errors were encountered: