We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6020071 + 95c7f6d commit e5513c4Copy full SHA for e5513c4
src/pycamp_bot/commands/auth.py
@@ -2,6 +2,7 @@
2
from telegram.ext import CommandHandler
3
from pycamp_bot.models import Pycampista
4
from pycamp_bot.logger import logger
5
+from pycamp_bot.utils import escape_markdown
6
7
8
def get_admins_username():
@@ -84,8 +85,11 @@ async def revoke_admin(update, context):
84
85
user = Pycampista.select().where(Pycampista.username == fallen_admin)[0]
86
user.admin = False
87
user.save()
- await context.bot.send_message(chat_id=chat_id,
88
- text='Un admin ha caido --{}--.'.format(fallen_admin))
+ await context.bot.send_message(
89
+ chat_id=chat_id,
90
+ text=f'Un admin ha caído ~{escape_markdown(fallen_admin)}~\\.',
91
+ parse_mode='MarkdownV2',
92
+ )
93
94
95
async def list_admins(update, context):
0 commit comments