mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
[bug] fix login failure when tgbot is not active
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
parent
77241c7fcf
commit
2a182d8b9a
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
func (t *Tgbot) SendMsgToTgbot(tgid int64, msg string, inlineKeyboard ...tgbotapi.InlineKeyboardMarkup) {
|
||||||
|
if !isRunning {
|
||||||
|
return
|
||||||
|
}
|
||||||
var allMessages []string
|
var allMessages []string
|
||||||
limit := 2000
|
limit := 2000
|
||||||
// paging message if it is big
|
// paging message if it is big
|
||||||
|
|
Loading…
Reference in a new issue