3x-ui/web
OleksandrParshyn 9ac8fdf3d3
Fix: Graceful Telegram bot shutdown to prevent 409 Conflict
Introduces a `botCancel` context and a global `StopBot()` function to ensure the Telegram bot's Long Polling operation is safely terminated (via context cancellation) before the service restarts. This prevents the "Conflict: another update consumer is running" (409) error upon panel restart.

Changes:
- Added `botCancel context.CancelFunc` to manage context cancellation.
- Implemented global `StopBot()` function.
- Updated `Tgbot.Stop()` to call `StopBot()`.
- Modified `Tgbot.OnReceive()` to use the new cancellable context for `UpdatesViaLongPolling`.
2025-10-31 13:29:20 +01:00
..
assets DevTools 2025-10-02 01:47:12 +02:00
controller minor changes 2025-09-24 11:47:14 +02:00
entity gofmt 2025-10-21 13:02:55 +02:00
global docs: add comments for all functions 2025-09-20 09:35:50 +02:00
html fragment : MaxSplit 2025-10-07 13:46:30 +02:00
job update dependencies 2025-10-07 13:49:08 +02:00
locale docs: add comments for all functions 2025-09-20 09:35:50 +02:00
middleware docs: add comments for all functions 2025-09-20 09:35:50 +02:00
network docs: add comments for all functions 2025-09-20 09:35:50 +02:00
service Fix: Graceful Telegram bot shutdown to prevent 409 Conflict 2025-10-31 13:29:20 +01:00
session docs: add comments for all functions 2025-09-20 09:35:50 +02:00
translation Update translate.ru_RU.toml (#3574) 2025-10-07 16:31:32 +02:00
web.go DevTools 2025-10-02 01:47:12 +02:00