Skip to content

Commit

Permalink
Fix cancel button
Browse files Browse the repository at this point in the history
  • Loading branch information
wrenfairbank committed Jun 29, 2020
1 parent 108ddab commit b223c10
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions telegram_gcloner/handlers/cancel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ def cancel(update, context):
if query.message.chat_id < 0 and \
(not query.message.reply_to_message or
query.from_user.id != query.message.reply_to_message.from_user.id):
# query.message.edit_reply_markup(reply_markup=None)
query.message.delete()
alert_users(context, update.effective_user, 'invalid caller', query.data)
query.answer(text='哟呵', show_alert=True)
return
# query.message.edit_reply_markup(reply_markup=None)
query.message.delete()

0 comments on commit b223c10

Please sign in to comment.