[bug] fix login failure when tgbot is not active

This commit is contained in:
Alireza Ahmadi
2023-05-11 10:47:51 +02:00
parent f8fe396ed5
commit 7edaf89596

View File

@@ -216,6 +216,9 @@ func (t *Tgbot) SendAnswer(chatId int64, msg string, isAdmin bool) {
}
func (t *Tgbot) SendMsgToTgbot(tgid int64, msg string) {
if !isRunning {
return
}
var allMessages []string
limit := 2000
// paging message if it is big