Browse Source

Quickfix for /o show and other names longer than 64 characters (ignored in the list of options for now)

master
LeoTheHuman 8 years ago
parent
commit
309df888dc
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      magic-judge-telegram-bot.py

+ 2
- 1
magic-judge-telegram-bot.py View File

@@ -63,7 +63,8 @@ def oracle_command(bot, update, args):
return

if len(nameCandidates) > 1:
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton(name, callback_data=name)] for name in nameCandidates])
# TODO: if len(name) < 64 is a quickfix for /o show, which fails to send correct callback data for un... card
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton(name, callback_data=name)] for name in nameCandidates if len(name) < 64])
update.message.reply_text('Which one?', reply_markup=reply_markup, quote=False)
return


Loading…
Cancel
Save