Skip to content

Commit

Permalink
postback payload more thant 20chars
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmadurga committed May 2, 2016
1 parent 500ce16 commit ad05933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microbot/models/bot.py
Expand Up @@ -425,7 +425,7 @@ def traverse(o, tree_types=(list, tuple)):
built_keyboard = None
if keyboard:
# same payload as title
built_keyboard = [PostbackButton(element[0:20], element[0:20]) for element in traverse(ast.literal_eval(keyboard))]
built_keyboard = [PostbackButton(element[0:20], element) for element in traverse(ast.literal_eval(keyboard))]
return built_keyboard

def create_chat_state(self, message, target_state, context):
Expand Down

0 comments on commit ad05933

Please sign in to comment.