Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com>2023-05-20 18:59:28 +0300
committerHamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com>2023-05-20 18:59:28 +0300
commit8c5648eb09b0d6d1479f102156e8a548ed478caa (patch)
tree79f9bef907105c54c49ffde81f9808f260fbdf00 /web/web.go
parent4dfe527f203cbae9b90e77e876fcfd90803bcb26 (diff)
FIX callback query and BUTTON_DATA_INVALID error with hashStorage
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/web.go b/web/web.go
index 908fefc5..b15731fc 100644
--- a/web/web.go
+++ b/web/web.go
@@ -283,6 +283,9 @@ func (s *Server) startTask() {
return
}
+ // check for Telegram bot callback query hash storage reset
+ s.cron.AddJob("@every 2m", job.NewCheckHashStorageJob())
+
// Check CPU load and alarm to TgBot if threshold passes
cpuThreshold, err := s.settingService.GetTgCpu()
if (err == nil) && (cpuThreshold > 0) {