diff --git a/fbmq/fbmq.py b/fbmq/fbmq.py index 5629b13..7abd7e4 100644 --- a/fbmq/fbmq.py +++ b/fbmq/fbmq.py @@ -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,