Skip to content

Commit

Permalink
added ButtonPersistentNested
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhjulskov authored Jan 29, 2018
1 parent d91a141 commit 02bccdc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fbmq/fbmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,13 @@ def show_localized_persistent_menu(self, locale_list):

buttons_dict = []
for button in buttons:
if isinstance(button, ButtonWeb):
if isinstance(button, ButtonPersistentNested):
buttons_dict.append({
"type": "nested",
"title": button.title,
"buttons": button.buttons
})
elif isinstance(button, ButtonWeb):
buttons_dict.append({
"type": "web_url",
"title": button.title,
Expand Down

0 comments on commit 02bccdc

Please sign in to comment.