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
i can not catch Exception
i tried any type of exception
\GuzzleHttp\Exception\ClientException
\GuzzleHttp\Exception\RequestException
TelegramSDKException
but always have fatal error
chat_id is 0, because it send from server for notification and chat_id maybe bad and i need catch this error
What if catch (\Throwable $e)?
"chat_id maybe bad" Why? You need to know chat_id to send a message. How else would Telegram understand who you're sending the message to?
PHP version
8.1
irazasyed/telegram-bot-sdk version
^3.9
Laravel version (if any)
No response
Code To Reproduce the bug
$bot->sendMessage([
'chat_id'=>0,
'text'=>$text,
'parse_mode'=> 'html'
]);
Error stacktrace (if any)
i can not catch Exception
i tried any type of exception
\GuzzleHttp\Exception\ClientException
\GuzzleHttp\Exception\RequestException
TelegramSDKException
but always have fatal error
chat_id is 0, because it send from server for notification and chat_id maybe bad and i need catch this error
The text was updated successfully, but these errors were encountered: