From 2e383403c39b8b506a76e07fa06779554d9da14f Mon Sep 17 00:00:00 2001 From: werfrag <78380638+werfrag@users.noreply.github.com> Date: Sun, 7 Jun 2026 01:36:38 +0200 Subject: [PATCH] Update TelegramBridge.cs The names of players containing the "_" symbol were not read. --- MinecraftClient/ChatBots/TelegramBridge.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/MinecraftClient/ChatBots/TelegramBridge.cs b/MinecraftClient/ChatBots/TelegramBridge.cs index 6b645507..f53ea28c 100644 --- a/MinecraftClient/ChatBots/TelegramBridge.cs +++ b/MinecraftClient/ChatBots/TelegramBridge.cs @@ -194,7 +194,7 @@ namespace MinecraftClient.ChatBots else message = text; - SendMessage(message); + SendRawMessage(message); } public void SendMessage(string message) @@ -213,6 +213,22 @@ namespace MinecraftClient.ChatBots } } + public void SendRawMessage(string message) + { + if (!CanSendMessages() || string.IsNullOrEmpty(message)) + return; + + try + { + botClient!.SendMessage(Config.ChannelId.Trim(), message).Wait(Config.Message_Send_Timeout); + } + catch (Exception e) + { + LogToConsole("§§4§l§f" + Translations.bot_TelegramBridge_canceled_sending); + LogDebugToConsole(e); + } + } + public void SendImage(string filePath, string? text = null) { if (!CanSendMessages())