-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to receive a reply message with ReplyToMessage #113
Comments
ping |
Same problem. Only if I manually reply on the message, then callback is being called. |
@mishachesnokov - what do you mean by 'manually replay on the message'? |
@akaspi - when I tap on bot's message in chat and press "Reply" then console.log gets my answer. But that's not what I want. |
@mishachesnokov - Thanks. I wasn't familiar with this tapping on bot's message feature.... However, if you think of it, the following message after the bot's message won't always be the replay. edit: |
@akaspi - That's the purpose of 'force_reply'. But it doesn't seem to work properly. I suppose the next message after bot's message is a user's reply, since if I asked something I need the answer now - before we proceed further. Currently I am using another lib for nodejs - there it works fine. |
@mishachesnokov - Which node lib do you currently use ? thanks! |
@firo - https://github.com/mdibaiee/node-telegram-api But the author says he can't put enough time in it now. Anyway the things he has done let me do enough. Just a little bit worry about telegram future updates. |
The same problem. Can not get the reply. My main msg handler recieves the msg but it doesnt look like a response. Response handler is nerver called. |
Palliative: I'm dealing this way: You can create a class, and put it within.
|
Whats this? |
@zigzag-way is a class. |
@raphaklaus there is a problem, you can't add a listener when needed and remove it if not needed, because if 2 (or more) users at the same time are "enabling" it, the first that end the usage avoid to the second user to use it (the added listener). |
@Kaos1337, thanks for the advice. I edited the code to keep the callbacks, and check user id. |
HI @raphaklaus Thank you |
Please check my replies in this issue: #108 |
As @mishachesnokov suggests above, the callback will only be fired if the user manually replies to it! Otherwise, you will have to implement, in your application code, a way to maintain a conversation (implies state) with your user! However, I believe proper documentation will help users avoid this pitfall! We will close this issue once we update our docs! |
We have added a common pitfalls section in our docs! Please find more information there! |
I solved this problem by creating a onNextMessage(chatId, callback) Create function onNextMessage()
Then you need to listen to any Message:
Finally:
|
Hi,
I'm trying to run a simple test code according to the replyToMessage example and my replyToMessage callback is never called.
console.log
(in onReplyToMessage callback) is never called...Am I doing something wrong?
The text was updated successfully, but these errors were encountered: