From 8c5648eb09b0d6d1479f102156e8a548ed478caa Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> Date: Sat, 20 May 2023 20:29:28 +0430 Subject: FIX callback query and BUTTON_DATA_INVALID error with hashStorage --- web/web.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/web.go') 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) { -- cgit v1.2.3