Closed xoancosmed closed 3 years ago
Yes that is a known issue for ages. However I can not really tell you why it occurs. Maybe I should just try to debug that once again…. in the meantime extending the readme with a hint would be a useful alternative
I improved some register/unregister-event things inside the command nodes. In addition to that I tried to reproduce your scenario. At least on my machine it sseems to work. @xoancosmed can you test that for me on your machine?
Should work in 10.0.5 (hopefully :) )
Good afternoon. Sorry for the delay. I've being testing it several time and now seems to work perfectly for me using the partial deploy. Thank very much your help and time.
@xoancosmed ah cool!
I'm used to use the "Modified Flows" option when deploying my flows in Node-RED. However, if I do this after adding a new receiver (or command) node, this makes the older receiver (or command) nodes to stop working.
I don't think this is a critical issue, as to fix it is enough to stop using the "Modified Flows" option when deploying your flow changes, but I didn't see the issue mentioned anywhere in the documentation. Is this a known issue? Is expected to be fixed? If so, I think it should be added to the documentation (I can create a PR).
My apologies if this is not the right place to discuss this. And thank you very much for taking your time in reading this note.
How to reproduce
1) Create a fresh Node-RED instance:
2) Install the node-red-contrib-telegrambot palette:
3) Create a testing bot using
@BotFather
:4) In the Node-RED flow, add a command node, doble clic on it and add the bot settings:
5) Save the changes and write the command that node will handle:
6) Add a debug node to the first output of the command node:
7) Make the first deploy:
8) Add a second command node with a different command:
9) Add debug nodes to the first output of the new command node:
10) Deploy using the "Modified Flows" option:
11) Test sending messages to the bot:
My testing setup
I tested it in both a Respberry Pi 4 (Node-RED comes pre-installed; using the latest Node stable version) and using the official Docker image. Using node-red-contrib-telegrambot version 10.0.4 in both scenarios.
In case it depends, my web browser is Firefox 89.0.2 (in macOS and Manjaro).