core icon indicating copy to clipboard operation
core copied to clipboard

getUpdates Fatal error when no connection

Open sudadi opened this issue 2 years ago • 0 comments

🐞 Bug Report

Required Information

? !
Operating system Linux
PHP Telegram Bot version 0.8.2
PHP version 8.x
MySQL version Mariadb 10
Update Method getUpdates
Self-signed certificate no

Current behaviour

When no connection or network disconnected fatal error will appear

How to reproduce

Run getUpdatesCLI (as example), disconnect network, fatal error happen.

Expected behaviour

If there is no connection while getUpdatesCLI running, catch error to log and getUpdates still running (no fatal error),

sudadi avatar Nov 22 '23 08:11 sudadi