php-telegram-bot / core

PHP Telegram Bot based on the official Telegram Bot API
MIT License
3.79k stars 949 forks source link

getUpdates Fatal error when no connection #1432

Open sudadi opened 6 months ago

sudadi commented 6 months ago

🐞 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),