I posted this in home assistant forum, it's actually a purely node red and telegram, nothing to do with home assistant:
Does anyone have similar experience and how to fix it?
Thanks.
I posted this in home assistant forum, it's actually a purely node red and telegram, nothing to do with home assistant:
Does anyone have similar experience and how to fix it?
Thanks.
bump... if anyone knows this.
Thanks.
First off, suppling the name of the telegram node you are using would be helpful, not to mention the flow, errors, platform, os, version of NR and node.js.
Thanks for replying zenofmud. The telegram node I'm using is conversation and telegram sender. I was running node-red docker (in ubuntu 18.04) with image nodered/node-red-docker:v8.
node-red-contrib-chatbot 0.18.4.
I copied the detail of the post below. Thanks!
This is a flow to send a msg to telegram:
[{"id":"90fb27e7.b363c8","type":"chatbot-conversation","z":"845016a6.b38828","name":"","botDevelopment":"d1f7aac3.9c2a98","botProduction":"","chatId":"MYTELEGRAMID","userId":"","transport":"telegram","store":"","x":250,"y":380,"wires":[["2414a9fd.e0d016"]]},{"id":"2414a9fd.e0d016","type":"chatbot-message","z":"845016a6.b38828","name":"txt","message":[{"message":"hi there"}],"answer":false,"silent":false,"x":410,"y":380,"wires":[["de9151f1.5acb7"]]},{"id":"de9151f1.5acb7","type":"chatbot-telegram-send","z":"845016a6.b38828","bot":"d1f7aac3.9c2a98","botProduction":"","track":true,"passThrough":true,"outputs":1,"x":570,"y":380,"wires":[[]]},{"id":"8b5a6a.f1808598","type":"inject","z":"845016a6.b38828","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":380,"wires":[["90fb27e7.b363c8"]]},{"id":"d1f7aac3.9c2a98","type":"chatbot-telegram-node","z":"","botname":"BOTNAME","usernames":"MYTELEGRAMID","providerToken":"","polling":"1000","store":"","log":"/data/log/telegram.txt","parseMode":"","debug":false,"webHook":"","connectMode":"polling"}]
MYTELEGRAMID is my own telegram id, BOTNAME is the telegram bot name
When injected, I did get the correct message from telegram app. However I noticed there are errors in the debug window:
Also found error in the nodered log:
Copy to clipboard
12 Jan 13:39:38 - [error] [chatbot-conversation:90fb27e7.b363c8]
12 Jan 13:39:38 - [error] [chatbot-message:txt]
Sorry I should have been clearer, which node-red-contrib-??? are you using
?
it is "node-red-contrib-chatbot 0.18.4"
Well, that's pretty ugly. I just installed the node and restarted NR and now it doesn't recognize I have projects active... Sorry but I need to look into that issue before yours.
Just to tie this back, here is a link to the issue (bug?) I found installing the node: (Reproducable) Installed node-red-contrib-chatbot which disable/messed up projects
@kanke you might want to read some of the comments on the thread I referenced and use a different node
thanks for your time. seems node-red-contrib-chatbot has issue itself. it did send the text msg without issue, but just the error showing up in the log and debug panel.
I've used node-red-contrib-telegram successfully for messages, haven't tried sending a image though. You should give it a try
Will try out. Thanks.