diff options
| author | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-21 06:11:59 +0300 |
|---|---|---|
| committer | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-21 06:11:59 +0300 |
| commit | 76267b23a03d3d3424d5e6b147825391ac5b37db (patch) | |
| tree | d9d40f62ec8ae0b9f0b45d90e7b9074814d25fa2 /web/service | |
| parent | 40a926a54a32fcec7649e16d41ce732c732626b8 (diff) | |
fix tgbot
Diffstat (limited to 'web/service')
| -rw-r--r-- | web/service/tgbot.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go index 4794dc68..8f5f84a9 100644 --- a/web/service/tgbot.go +++ b/web/service/tgbot.go @@ -1061,7 +1061,9 @@ func (t *Tgbot) getExhausted() string { } func (t *Tgbot) sendBackup(chatId int64) { - t.SendMsgToTgbot(chatId, t.I18nBot("tgbot.backupTime", "Time=="+time.Now().Format("2006-01-02 15:04:05"))) + output := t.I18nBot("tgbot.messages.backupTime", "Time=="+time.Now().Format("2006-01-02 15:04:05")) + t.SendMsgToTgbot(chatId, output) + file, err := os.Open(config.GetDBPath()) if err != nil { logger.Warning("Error in opening db file for backup: ", err) @@ -1074,6 +1076,7 @@ func (t *Tgbot) sendBackup(chatId int64) { if err != nil { logger.Warning("Error in uploading backup: ", err) } + file, err = os.Open(xray.GetConfigPath()) if err != nil { logger.Warning("Error in opening config.json file for backup: ", err) |
