defstudio / telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots
MIT License
674 stars 116 forks source link

Adding new users to the bot #539

Closed Freshblood1121 closed 7 months ago

Freshblood1121 commented 7 months ago

Hello, when a new user is added to my bot, I get the following error: "Sorry, an error occurred".

Then my main account also breaks down.

The first account is added to the "telegraph_chats" model, other accounts are also added to the database. I also checked the logs, there is the following error:

local.DEBUG: Telegraph webhook message {"text":"/birthday"}
[2024-02-28 02:35:07] local.ERROR: No TelegraphChat defined for this request {"exception":"[object] (DefStudio\\Telegraph\\Exceptions\\TelegraphException(code: 0): No TelegraphChat defined for this request at /var/www/fastuser/data/www/roundmaze.ru/vendor/defstudio/telegraph/src/Exceptions/TelegraphException.php:16)

7 8 9

Please tell me what the problem might be😢.

Freshblood1121 commented 7 months ago

Okay, this is also a solved problem.😂 use $this->chat->message almost Telegraph:message