interact: fix telegram message length check

This commit is contained in:
c9s 2022-09-14 02:56:47 +08:00
parent b855267604
commit 0b9320f7dc
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -157,8 +157,10 @@ func (tm *Telegram) Start(context.Context) {
if reply.set {
reply.build()
if len(reply.message) > 0 || reply.menu != nil {
checkSendErr(tm.Bot.Send(m.Chat, reply.message, reply.menu))
}
}
})
var cmdList []telebot.Command