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,7 +157,9 @@ func (tm *Telegram) Start(context.Context) {
if reply.set {
reply.build()
checkSendErr(tm.Bot.Send(m.Chat, reply.message, reply.menu))
if len(reply.message) > 0 || reply.menu != nil {
checkSendErr(tm.Bot.Send(m.Chat, reply.message, reply.menu))
}
}
})