defstudio / telegraph

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

When more than one user stops working #496

Closed m-petrosyan closed 8 months ago

m-petrosyan commented 8 months ago

If there is only one user in the database everything is fine, but when there are two of them I get an error when calling the Telegraph::photo('https://my-repository/photo.jpg')->send() method;

I get the following error in the log file

 No TelegraphChat defined for this request {"exception":"[object] (DefStudio\\Telegraph\\Exceptions\\TelegraphException(code: 0): No TelegraphChat defined for this request at C:\\wamp64\\www\\projects\\movie-telegram-bot\\vendor\\defstudio\\telegraph\\src\\Exceptions\\TelegraphException.php:16)
[stacktrace]
fabio-ivona commented 8 months ago

If there are two chats registered in your system, you should specify which one should receive your message through ->chat() method