From d0005cb1f14c81a8bc193daa6d35c1c14a1f4873 Mon Sep 17 00:00:00 2001 From: Ayrat Hudaygulov Date: Sun, 21 Jul 2024 13:54:18 +0100 Subject: [PATCH] fixed markdown log parsing (#31) --- src/VahterBanBot/ML.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VahterBanBot/ML.fs b/src/VahterBanBot/ML.fs index 95ff504..0d6efad 100644 --- a/src/VahterBanBot/ML.fs +++ b/src/VahterBanBot/ML.fs @@ -10,6 +10,7 @@ open Microsoft.ML open Microsoft.ML.Data open Telegram.Bot open Telegram.Bot.Types +open Telegram.Bot.Types.Enums open VahterBanBot.DB open VahterBanBot.Types open VahterBanBot.Utils @@ -72,7 +73,7 @@ type MachineLearning( let metricsStr = metricsToString metrics sw.Elapsed logger.LogInformation metricsStr - do! telegramClient.SendTextMessageAsync(ChatId(botConf.LogsChannelId), metricsStr) + do! telegramClient.SendTextMessageAsync(ChatId(botConf.LogsChannelId), metricsStr, parseMode = ParseMode.MarkdownV2) |> taskIgnore }