escape messages
This commit is contained in:
parent
534500d212
commit
c820aea8b7
3
main.py
3
main.py
@ -4,6 +4,7 @@ import datetime
|
|||||||
import isv
|
import isv
|
||||||
import configstore
|
import configstore
|
||||||
|
|
||||||
|
from html import escape
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from strings import lang as _
|
from strings import lang as _
|
||||||
from telegram import (
|
from telegram import (
|
||||||
@ -41,7 +42,7 @@ def get_markup() -> ReplyKeyboardMarkup:
|
|||||||
|
|
||||||
|
|
||||||
def reply(update: Update, text: str) -> None:
|
def reply(update: Update, text: str) -> None:
|
||||||
update.message.reply_text(text,
|
update.message.reply_text(escape(text),
|
||||||
reply_markup=get_markup(),
|
reply_markup=get_markup(),
|
||||||
parse_mode=ParseMode.HTML)
|
parse_mode=ParseMode.HTML)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user