conbus / fbmq

(Deprecated) Facebook Messenger Platform Python Library (Facebook Chatbot Library)
MIT License
171 stars 65 forks source link

I need nested persistent menu #50

Open michaelhjulskov opened 6 years ago

michaelhjulskov commented 6 years ago

Hi :)

Thanks alot for sharing this awesome library.

I would like to use the nested persistent menu, but is it possible in the current fbmq version?

Here is what I suggest:

add ButtonPersistentNested(title, buttons)

nested = [ Template.ButtonPostBack("Nested1", 'MENU_PAYLOAD,nested1'), Template.ButtonPostBack("Nested2", 'MENU_PAYLOAD,nested2'), ] page.show_persistent_menu([ Template.ButtonPostBack("Menu1", 'MENU_PAYLOAD,menu1'), Template.ButtonPersistentNested("Nested", nested), ])

michaelhjulskov commented 6 years ago

also maybe support composer_input_disabled True/False :)

https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/persistent-menu

michaelhjulskov commented 6 years ago

I made the file changes here: https://github.com/michaelhjulskov/fbmq

I would like to send a pull request in here. Sorry Im not that aquanited with github. How do I pull the changes from my github, to here?

later: maybe add support for composer_input_disabled True/False

michaelhjulskov commented 6 years ago

made a small change in readme file https://github.com/michaelhjulskov/fbmq/commits/master

michaelhjulskov commented 6 years ago

hello????????? anyone?

anton-nayshtut commented 6 years ago

@michaelhjulskov please re-base your changes and create a pull request.

Thank you!

michaelhjulskov commented 6 years ago

Would love to. Please explain the steps. Thanks

anton-nayshtut commented 6 years ago

Just Google it.

https://yangsu.github.io/pull-request-tutorial/ for example

goho302jo03 commented 5 years ago

I need this feature!