diff --git a/src/pycamp_bot/commands/auth.py b/src/pycamp_bot/commands/auth.py index f652321..445f946 100644 --- a/src/pycamp_bot/commands/auth.py +++ b/src/pycamp_bot/commands/auth.py @@ -2,6 +2,7 @@ from telegram.ext import CommandHandler from pycamp_bot.models import Pycampista from pycamp_bot.logger import logger +from pycamp_bot.utils import escape_markdown def get_admins_username(): @@ -84,8 +85,11 @@ async def revoke_admin(update, context): user = Pycampista.select().where(Pycampista.username == fallen_admin)[0] user.admin = False user.save() - await context.bot.send_message(chat_id=chat_id, - text='Un admin ha caido --{}--.'.format(fallen_admin)) + await context.bot.send_message( + chat_id=chat_id, + text=f'Un admin ha caĆ­do ~{escape_markdown(fallen_admin)}~\\.', + parse_mode='MarkdownV2', + ) async def list_admins(update, context):