[Question] How to use ctx.onReplyToMessage?
See original GitHub issueI uses this from another nodejs library. How do I make this work with Telegraf?
ctx.replyWithHTML("Please send your email address",
{reply_to_message_id:ctx.message.message_id,
reply_markup:{force_reply:true, selective:true}
}).then(function(res){
const replyListener = ctx.onReplyToMessage(res.chat.id,res.message_id,function(response){
//remove listener
ctx.removeReplyListener(replyListener);
//grab the response
console.log(response)
fun(response);
});
});`
I can’t see any method to get reply to a message in Telegraf Help me out please.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Waiting for a message response using Telegraf/Node.js
command("login", (ctx) => { ctx.reply("You Entered Login"); ctx.reply(loginMessage);//login message:Please Enter EMAIL ...
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 Free
Top 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
@wisdomabioye
bot.on('text')
: Text messages only including emojibot.on('message')
: New incoming message of any kind — text, photo, sticker, etc.@dotcypress Thanks for response. Where can I find documentation for Scenes and stages?