Closed HamasakiBrain closed 7 months ago
@fabio-ivona help please)
@HamasakiBrain could you check the value of $this->chat
and paste here your error stacktrace?
@HamasakiBrain could you check the value of
$this->chat
and paste here your error stacktrace?
When Log::debug($this->chat);
Typed property DefStudio\Telegraph\Handlers\WebhookHandler::$chat must not be accessed before initialization
@fabio-ivona
@HamasakiBrain the exception triggers in app/Telegram/Service.php
so it's outside Telegraph source code
probably you are calling telegraph API that requires a chat to be set up, you should do it
basically: when there is a single chat registered in your db, Telegraph loads it assuming it is the only possible one. But you have two chats, so you should pass the chat to your Service (using $this->chat in your Handler)
@fabio-ivona I've removed this code, but it doesn't work without it. No TelegraphChat defined for this request
what code did you removed?
what code did you removed?
$this->service->reading()
So, now, what is the updated stack trace?
So, now, what is the updated stack trace?
The same mistake remained. No TelegraphChat defined for this request
Sorry @HamasakiBrain ,can't help anymore without proper info
The previous stack trace triggered in one of your classes, now that you removed that call, I need the new stack trace in order to detect where the issue is triggered
My code is working when 1 chat in Database. When i send message on my bot from other account telegraph report No telegraphChat defined for this request. My handler on screen 1.
My telegraph config file.