Skip to content

Commit 71293d6

Browse files
Krishna-Singhalpull[bot]
authored andcommittedAug 30, 2020
fixed secret msg (#141)
1 parent b8eb451 commit 71293d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎userge/plugins/help.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ async def inline_answer(_, inline_query: InlineQuery):
402402
PRVT_MSGS[inline_query.id] = (user.id, user.first_name, msg.strip(': '))
403403
prvte_msg = [[InlineKeyboardButton(
404404
"Show Message 🔐", callback_data=f"prvtmsg({inline_query.id})")]]
405-
msg_c = f"🔒 A **private message** to {user.mention}, Only he/she can open it."
405+
msg_c = f"🔒 A **private message** to {'@' + user.username}, "
406+
msg_c += "Only he/she can open it."
406407
results.append(
407408
InlineQueryResultArticle(
408409
id=uuid4(),

0 commit comments

Comments
 (0)
Please sign in to comment.