Skip to content

Commit e48b054

Browse files
author
Marten (msc)
committed
fixup! [IMP] catch exception if bot doesn't have enough rights
1 parent c65393f commit e48b054

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

summaree_bot/bot/common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ async def process_transcription_request_message(update: Update, context: Context
5858
chat_mention = f"ID {update.effective_chat.id}"
5959

6060
template_string = escape_markdown(
61-
"$user_mention (ID $user_id) tried to send a request to "
62-
"chat $chat_mention where the bot is not allowed to send messages.",
61+
"$usermention (ID $userid) tried to send a request to "
62+
"chat $chatmention where the bot is not allowed to send messages.",
6363
version=2,
6464
)
6565
template_mapping = {
66-
"chat_mention": chat_mention,
67-
"user_mention": update.effective_user.mention_markdown_v2(),
68-
"user_id": update.effective_user.id,
66+
"chatmention": chat_mention,
67+
"usermention": update.effective_user.mention_markdown_v2(),
68+
"userid": update.effective_user.id,
6969
}
7070

7171
template = string.Template(template_string)

0 commit comments

Comments
 (0)