some fix and prune for tgbot

This commit is contained in:
Hamidreza Ghavami
2023-05-20 19:39:01 +04:30
parent 795835c54f
commit 678962d4ca
3 changed files with 65 additions and 48 deletions

View File

@@ -453,7 +453,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