Co-Authored-By: Alireza Ahmadi <[email protected]>
@@ -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