mastercake10 6 роки тому
батько
коміт
de5d0b0d42

+ 1 - 1
src/main/java/de/Linus122/TelegramChat/Main.java

@@ -175,7 +175,7 @@ public class Main extends JavaPlugin implements Listener{
 		if(telegramHook.connected){
 			Chat chat = new Chat();
 			chat.parse_mode = "Markdown";
-			chat.text = escape(e.getPlayer().getName()) + ": _" + e.getMessage().replaceAll("§.", "") + "_";
+			chat.text = escape(e.getPlayer().getName()) + ": " + escape(e.getMessage()).replaceAll("§.", "") ;
 			telegramHook.sendAll(chat);
 		}
 	}

+ 1 - 0
src/main/java/de/Linus122/TelegramChat/Telegram.java

@@ -133,6 +133,7 @@ public class Telegram {
 			actionListener.onSendToTelegram(chat);
 		}
 		Gson gson = new Gson();
+
 		post("sendMessage", gson.toJson(chat, Chat.class));
 		
 	}