some fix for tgbot

This commit is contained in:
Hamidreza Ghavami
2023-05-21 06:29:35 +04:30
parent 2990f71fe2
commit afeab09753
3 changed files with 59 additions and 21 deletions

View File

@@ -421,7 +421,7 @@ func (s *Server) Stop() error {
if s.cron != nil {
s.cron.Stop()
}
if s.tgbotService.IsRunnging() {
if s.tgbotService.IsRunning() {
s.tgbotService.Stop()
}
var err1 error