summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-04-15 15:54:19 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-04-15 15:54:19 +0300
commitc820aea8b7c6a9a1076c1b4339cf5933e7fdbee0 (patch)
tree922342c321e3d440138d01af20e513e1a2806b70
parent534500d21247d4c904090425d3a924c18afea135 (diff)
escape messages
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
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)