Triggering menu conditionally
See original GitHub issueFirst of all thanks a lot for the library it’s fun and easy to use!
I am new to bots and may not understand the whole workflow properly but I want to achieve the following:
When user sends a link to telegram I want menu to open so he/she can input some additional information. The thing which I can’t solve is triggering menu open on some bot.hears()
for example.
In pseudo code it would be smth like:
bot.hears(someRegex, ctx => {
menu.open()
})
Maybe you would have some time to give me an advice or directions! Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Conditional Context Menu Triggers - Stack Overflow
I currently have two buttons. One button is to Showappointments(), the other is ShowTask(). When either is clicked the FontWeight of that ...
Read more >Power Automate Conditional Trigger based on SharePoint List ...
This video will walk the process of how to add conditional trigger in Power Automate Flow based on SharePoint list choice column value....
Read more >ContextMenu how to build menu conditionally - jQuery Forum
I'm new to contextMenu. I'm trying to build a simple example using the example code below.
Read more >Conditionals Extension - UberMenu - WordPress Mega Menu
UberMenu Conditionals adds the option to conditionally display or hide any individual item in your UberMenu. It adds a new settings tab to...
Read more >Triggers and Conditional Rendering
Triggers are data driven conditions that determine whether an event is launched or ... Choose a formulation type combination from the drop-down menu....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow, I couldn‘t be happier with such a thorough explanation! Thanks a lot for your time and efforts, I think I will be available to solve it when I figure out your snippet👍🏼👍🏼👍🏼 Keep up the good work!
You should take a look at the README part for
menu.replyMenuMiddleware()
.In your case this should be something like this:
I hope it helps!