Telegram command

209 views
Skip to first unread message

Folgore

unread,
Nov 21, 2016, 4:20:21 PM11/21/16
to Node-RED
Hello everybody,I can not run the command telegram,sending and receiving work properly. In bot I created the 2 commands.
Some idea?

Thank'you very much.

Julian Knight

unread,
Nov 22, 2016, 1:49:19 AM11/22/16
to Node-RED
You will need to post some more info. Maybe your flow.

Folgore

unread,
Nov 22, 2016, 2:01:03 PM11/22/16
to Node-RED



Hello Julian, I post  the simple flow and the image. In debug you see the received message. But in my bot i have create a command /ciao. 

Now I post this flow.

[{"id":"3d01513a.bc7f2e","type":"telegram command","z":"c079bcc.123514","name":"ciao","command":"/ciao","bot":"9d763b93.33ed08","x":390,"y":347,"wires":[["24144827.5575b8","f476fb13.bbf298"],["24144827.5575b8","f476fb13.bbf298"]]},{"id":"24144827.5575b8","type":"telegram sender","z":"c079bcc.123514","name":"","bot":"9d763b93.33ed08","x":723,"y":257,"wires":[[]]},{"id":"f476fb13.bbf298","type":"debug","z":"c079bcc.123514","name":"","active":true,"console":"false","complete":"false","x":706,"y":340,"wires":[]},{"id":"6c3765bc.406e5c","type":"telegram receiver","z":"c079bcc.123514","name":"","bot":"9d763b93.33ed08","x":382,"y":406,"wires":[[],["f476fb13.bbf298"]]},{"id":"9d763b93.33ed08","type":"telegram bot","z":"","botname":"fooBot","usernames":"[]","chatids":"[]"}]

Thank'you very much.

sitius

unread,
Dec 2, 2016, 5:55:42 PM12/2/16
to Node-RED


It seems that the you are not giving the correct message to the bot. If your command is named /ciao I think you should send it the message /ciao and then the value for the command for instance:  /ciao 10

Folgore

unread,
Dec 5, 2016, 1:02:19 PM12/5/16
to Node-RED
I try send the command with the value, but does'nt work. Have you any idea?
Thank's.

Colin Law

unread,
Dec 5, 2016, 3:43:33 PM12/5/16
to node...@googlegroups.com
Add a debug node that shows the message you are sending to the node.
Set the debug to 'show complete message' and deploy. Then copy/paste
here the debug that it produces for a message that does not do what
you expect.

Colin
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/node-red/2bd6b6f4-5a5c-40d2-b081-dc1fed58a9b9%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Folgore

unread,
Dec 5, 2016, 4:25:33 PM12/5/16
to Node-RED
The 2 outputs of the telegram node does not triggered, i have put the debug node. I do not know what the command syntax.
Reply all
Reply to author
Forward
0 new messages