windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
259 stars 116 forks source link

Reply Node doesn't work as expected #233

Closed wolfdave closed 2 years ago

wolfdave commented 2 years ago

First of all I'd like to thank you for this great package. I love it! Everything works just fine.

Now I wanted to send a message through a "Sender"-Node and then catch the answer with a "Reply"-Node. I used the "Answer-Feature" in Telegram. Not only an inline answer! I tried it on Telegram Web (right-click an reply) and on mobile.

If i use a command (green) like in the examples it works. But if I change it to a "Sender"-Node it just sends the message but ignores the reply.

image

Maybe I misunderstood the purpose of the "Reply"-Node or just did a mistake in the configuration.

I've also tried to make it more simple like this: image

My node-red is the latest version (2.2.0) and node-red-contrig-telegrambot is 11.2.3.

Thank you for your help and support!

windkh commented 2 years ago

Hm what payload do you inject in the first example? I will try to reproduce your problem

wolfdave commented 2 years ago

The Inject Node looks like this: image

But only for test porposes!

Thank you very much!

windkh commented 2 years ago

Why do you not just trigger the function node which would send the question???? You have just added another sender node???

wolfdave commented 2 years ago

I just did this for an quick&dirty testing. Later I will do something like this: image

For example: If we get a phonecall, the bot is messaging to a chat-group and if a user chooses reply, the bot takes the answer as content as body for a new ticket in our ticketsystem.

Bot: Hi, we have a new call from 0123-456789. Do you wish to create a ticket? If yes, send me the content as an answer to this message. User: (selects reply) This is a Testmessage Bot: Thank you. Your Ticket #1234567 has been created.

windkh commented 2 years ago

Please send me the flow so that I can see what is going on

windkh commented 2 years ago

closed as author did not reply