init i18n in tgbot

This commit is contained in:
Hamidreza Ghavami
2023-05-20 20:08:01 +04:30
parent 980ebd99ca
commit 4dfe527f20
2 changed files with 13 additions and 2 deletions

View File

@@ -367,7 +367,7 @@ func (s *Server) Start() (err error) {
isTgbotenabled, err := s.settingService.GetTgbotenabled()
if (err == nil) && (isTgbotenabled) {
tgBot := s.tgbotService.NewTgbot()
tgBot.Start()
tgBot.Start(i18nFS)
}
return nil