From c820aea8b7c6a9a1076c1b4339cf5933e7fdbee0 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 15 Apr 2021 15:54:19 +0300 Subject: escape messages --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 46fdac3..51f8d35 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ import datetime import isv import configstore +from html import escape from time import sleep from strings import lang as _ from telegram import ( @@ -41,7 +42,7 @@ def get_markup() -> ReplyKeyboardMarkup: def reply(update: Update, text: str) -> None: - update.message.reply_text(text, + update.message.reply_text(escape(text), reply_markup=get_markup(), parse_mode=ParseMode.HTML) -- cgit v1.2.3