Skip to content

Commit

Permalink
fixed secret msg (UsergeTeam#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-Singhal authored Aug 30, 2020
1 parent e90b2e5 commit 8bcf6f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion userge/plugins/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ async def inline_answer(_, inline_query: InlineQuery):
PRVT_MSGS[inline_query.id] = (user.id, user.first_name, msg.strip(': '))
prvte_msg = [[InlineKeyboardButton(
"Show Message 🔐", callback_data=f"prvtmsg({inline_query.id})")]]
msg_c = f"🔒 A **private message** to {user.mention}, Only he/she can open it."
msg_c = f"🔒 A **private message** to {'@' + user.username}, "
msg_c += "Only he/she can open it."
results.append(
InlineQueryResultArticle(
id=uuid4(),
Expand Down

0 comments on commit 8bcf6f0

Please sign in to comment.