Map in telegram bot

602 views
Skip to first unread message

gorem...@gmail.com

unread,
Mar 25, 2018, 11:40:29 AM3/25/18
to Node-RED

Hi


How do i send a map to telegram? I want to set the lon and lat myself. I dnt have a GPS. 


Thank you




Colin Law

unread,
Mar 25, 2018, 11:56:25 AM3/25/18
to node...@googlegroups.com
If you don't have GPS how are you going to know the lat and lon?

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+unsubscribe@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/ffb96c3b-544a-44d6-b660-dec17d07b263%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Ivan Tarozzi

unread,
Mar 26, 2018, 4:01:56 AM3/26/18
to Node-RED
You can use the  chatbot-location, from chatbot package

Here a little example from my current setup
 
[{"id":"dc044ff7.2110c","type":"chatbot-telegram-receive","z":"10e8c0b5.72f8bf","bot":"381228f0.9a18f8","x":412.01953887939453,"y":400.00391578674316,"wires":[["710ed749.0cadf8"]]},{"id":"710ed749.0cadf8","type":"chatbot-command","z":"10e8c0b5.72f8bf","name":"","command":"/get_pos","x":630.01953125,"y":401.00390625,"wires":[["1a7e22fa.bb835d"]]},{"id":"1a7e22fa.bb835d","type":"chatbot-location","z":"10e8c0b5.72f8bf","name":"FabLab Romagna - Maker Space Rimini","latitude":"44.048223","longitude":"12.582524","place":"FLR - Maker Space Rimini","x":911.01953125,"y":401.00390625,"wires":[["ffe896b5.f520f8"]]},{"id":"ffe896b5.f520f8","type":"chatbot-telegram-send","z":"10e8c0b5.72f8bf","bot":"381228f0.9a18f8","track":false,"outputs":0,"x":1220.01953125,"y":399.00392723083496,"wires":[]},{"id":"381228f0.9a18f8","type":"chatbot-telegram-node","z":"","botname":"flr_rimini1_bot","usernames":"","polling":"1000","log":""}]

gorem...@gmail.com

unread,
May 24, 2018, 12:40:37 AM5/24/18
to Node-RED
Hi Ivan ,

Thank you it works well but how do i make it work without sending /get_pos command. I need to integrate it with the 1st flow where it sends picture to telegram upon I/O pin trigger. I tried with time stamp at redbot flow but it didn't work.


Thank you

Ivan Tarozzi

unread,
May 24, 2018, 4:41:49 AM5/24/18
to gorem...@gmail.com, Node-RED
In order to send telegram message to an user you need to know the chatID and use it in the telegram send message node.

If you use the telegram receiver node (receiving commands) the chatID is inserted automatically (use a debug node to see it).

gorem...@gmail.com

unread,
May 24, 2018, 12:30:21 PM5/24/18
to Node-RED

hi Ivan 

I put the correct chatID but am getting this error. 

Ivan Tarozzi

unread,
May 25, 2018, 4:23:48 AM5/25/18
to node...@googlegroups.com

Really strange,
it works in my system.

Please, try the attached JSON. Send a message to your bot and double-check the chatID and Telegram configuration.

Cheers,

Ivan



[{"id":"43aa563d.5b7f78","type":"chatbot-telegram-send","z":"fd40dddb.11f0f","bot":"ead2593.b0184a8","track":false,"parseMode":"","outputs":0,"x":940.0195274353027,"y":704.0039510726929,"wires":[]},{"id":"a5a551.d1a22ab","type":"inject","z":"fd40dddb.11f0f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":312.01953125,"y":705.00390625,"wires":[["106b145e.d5e10c"]]},{"id":"106b145e.d5e10c","type":"chatbot-conversation","z":"fd40dddb.11f0f","name":"Conversation","chatId":"62938187","transport":"telegram","messageId":"","contextMessageId":false,"x":511.01954650878906,"y":706.0039510726929,"wires":[["f92cd6fa.e9d9a8"]]},{"id":"f92cd6fa.e9d9a8","type":"chatbot-location","z":"fd40dddb.11f0f","name":"rimini","latitude":"44.0535197","longitude":"12.5396676","place":"rimini, IT","x":734.0195274353027,"y":705.0039358139038,"wires":[["43aa563d.5b7f78"]]},{"id":"368bf024.da1f2","type":"chatbot-telegram-receive","z":"fd40dddb.11f0f","bot":"ead2593.b0184a8","x":339.01953887939453,"y":597.0038967132568,"wires":[["b5700ed1.737b4"]]},{"id":"b5700ed1.737b4","type":"chatbot-debug","z":"fd40dddb.11f0f","x":617.0195388793945,"y":597.0038967132568,"wires":[]},{"id":"ead2593.b0184a8","type":"chatbot-telegram-node","z":"","botname":"flr_rimini1_bot","usernames":"","polling":"1000","log":""}]

--
http://nodered.org
 
** We're moving this mailing list over to the new Node-RED Forum: https://discourse.nodered.org **

 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/lvZW0xZytj0/unsubscribe.
To unsubscribe from this group and all its topics, 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.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages