diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-04-15 15:54:19 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-04-15 15:54:19 +0300 |
commit | c820aea8b7c6a9a1076c1b4339cf5933e7fdbee0 (patch) | |
tree | 922342c321e3d440138d01af20e513e1a2806b70 | |
parent | 534500d21247d4c904090425d3a924c18afea135 (diff) |
escape messages
-rw-r--r-- | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |