From 010ce923a101ecc5de91ae4e1756e622a3b552cb Mon Sep 17 00:00:00 2001 From: HugeFrog24 <62775760+HugeFrog24@users.noreply.github.com> Date: Sun, 20 Oct 2024 17:26:08 +0200 Subject: [PATCH] md formatting doesnt work yet --- bot.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bot.go b/bot.go index 76f9fdd..b90593c 100755 --- a/bot.go +++ b/bot.go @@ -203,13 +203,10 @@ func initTelegramBot(token string, handleUpdate func(ctx context.Context, tgBot return bot.New(token, opts...) } -// sendResponse sends a message to the specified chat. -// Returns an error if sending the message fails. func (b *Bot) sendResponse(ctx context.Context, chatID int64, text string, businessConnectionID string) error { params := &bot.SendMessageParams{ - ChatID: chatID, - Text: text, - ParseMode: models.ParseModeMarkdown, + ChatID: chatID, + Text: text, } if businessConnectionID != "" { @@ -236,9 +233,9 @@ func (b *Bot) sendStats(ctx context.Context, chatID int64, userID int64, usernam // Do NOT manually escape hyphens here statsMessage := fmt.Sprintf( - "📊 *Bot Statistics:*\n\n"+ - "\\- Total Users: %d\n"+ - "\\- Total Messages: %d", + "📊 Bot Statistics:\n\n"+ + "- Total Users: %d\n"+ + "- Total Messages: %d", totalUsers, totalMessages, )