From 5a401687698fe12c9b2b081d9d0dd5a936187364 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 9 Nov 2026 14:26:18 -0700 Subject: [PATCH] Added guard in bot.SendMarkdownMessage as well. --- internal/app/bot.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/app/bot.go b/internal/app/bot.go index cab7707..8eabfeb 100644 --- a/internal/app/bot.go +++ b/internal/app/bot.go @@ -106,8 +106,9 @@ func (b *bot) AttachHandlers() { } func (b *bot) SendMarkdownMessage(chatid int64, message string) error { - fmt.Println("bot:", b.tgbot) - fmt.Println("bot context:", b.ctx) + if len(message) == 0 { + return nil + } _, err := b.tgbot.SendRichMessage(b.ctx, &telego.SendRichMessageParams{ ChatID: tu.ID(chatid),