question-mark
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.

[Question] How to use ctx.onReplyToMessage?

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
athimannilcommented, Aug 30, 2018

@wisdomabioye bot.on('text'): Text messages only including emoji bot.on('message'): New incoming message of any kind — text, photo, sticker, etc.

1reaction
wisdomabioyecommented, Aug 9, 2018

@dotcypress Thanks for response. Where can I find documentation for Scenes and stages?

Read more comments on GitHub >

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

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found