Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/service/tgbot.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go
index 5b12a229..108af567 100644
--- a/web/service/tgbot.go
+++ b/web/service/tgbot.go
@@ -381,6 +381,9 @@ func (t *Tgbot) SendAnswer(chatId int64, msg string, isAdmin bool) {
}
func (t *Tgbot) SendMsgToTgbot(tgid int64, msg string, inlineKeyboard ...tgbotapi.InlineKeyboardMarkup) {
+ if !isRunning {
+ return
+ }
var allMessages []string
limit := 2000
// paging message if it is big