windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
264 stars 117 forks source link

The Keyboard persist on Telegram for Android #393

Open Barabba11 opened 2 hours ago

Barabba11 commented 2 hours ago

Hi! I'm runnng this example: https://github.com/windkh/node-red-contrib-telegrambot/blob/master/examples/keyboard.json With Telegram for windows works ok, type the command>see keyboard>make choice>the keyboard disappears. While the same on Android: type the command>see keyboard>make choice>the command is worwarded sucessfully but the keyboard keeps on chat, I need to reduce it manually.

If I have opened both interfaces: When on PC I call command the keboard disappears on both, I select answer on PC the keboard disappears on PC but still on phone, when I chose with phone (cmmand exacuted) the keyboard stills on both. What can I do to eliminate the keyboard? Thanks

Barabba11 commented 2 hours ago

Another 2 quesions please: 1) why if (msg.payload.content === "off") works if the message otputed from command node and doesn't work with receive node? That makes me crazy... the only difference I see is that the message from second utput /command is generated and sent by NR, while receive node outputting what comes from internet. Neither if I send that exact text (I chech on debug and it's correct) from phone, neither from telegram desktop. I've tried to clean eventually /n etc but no success,. Mistery.

2) consider I don't filter what I receive and I reply to all messages received ("Warning, you can us only /commandexample text"), I flag the "commands (from configured command nodes)" so I suppose when I type /commandexample I don't receive also the warning message, since it match the filter, but I still receive. What I'm doing wrong? Thanks