Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Triggering menu conditionally

See original GitHub issue

First 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 => {

Maybe you would have some time to give me an advice or directions! Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

d-ivashchukcommented, May 7, 2019

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!

EdJoPaTocommented, May 6, 2019

You should take a look at the README part for menu.replyMenuMiddleware().

In your case this should be something like this:

bot.hears(someRegex, menu.replyMenuMiddleware())

I hope it helps!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found