Skip to content

Commit

Permalink
Merge pull request #1 from michaelhjulskov/michaelhjulskov-patch-1
Browse files Browse the repository at this point in the history
added ButtonPersistentNested related to issue conbus#50
  • Loading branch information
michaelhjulskov authored Jan 29, 2018
2 parents 5de5294 + 02bccdc commit 567b22e
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 567b22e

Please sign in to comment.