diff options
| author | OleksandrParshyn <43094723+OleksandrParshyn@users.noreply.github.com> | 2025-11-01 16:33:35 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-01 16:33:35 +0300 |
| commit | 9936af80dd76a3400444a0fc6d18e8c3c4abcd8f (patch) | |
| tree | 8ec282ac7371bed4c4330b4e960299e5fdbdd474 /web | |
| parent | 4a75bd0a48db7ea3a2717806c5a9d3dcad31b92d (diff) | |
Fix: Invoke service.StopBot() in signal handlers (#3583)
Ensures the global Telegram bot stop function (`service.StopBot()`) is called upon receiving system signals (SIGHUP for restart, SIGINT/SIGTERM for shutdown). This complements the changes in `tgbot.go` to guarantee a clean shutdown of the Telegram bot's Long Polling operation, fully resolving the 409 Conflict issue during panel restarts or shutdowns.
Changes:
- Added `service.StopBot()` call to the `syscall.SIGHUP` handler.
- Added `service.StopBot()` call to the default shutdown handler.
Diffstat (limited to 'web')
0 files changed, 0 insertions, 0 deletions
