[HowTo] Setting up a Telegram Bot for all your Home Automation messages

I’m trying to set this up but no matter what I do I end up with errors in NodeRed.
It must be something with its config because I was able to complete all six steps and I have received text with testing

When it comes to my NodeRed config:


I’m not sure where the problem lies as when I hit timestamp it records contents of the message in the log in my shared folder but the message is not forwarded to the telegram.

Also I get tons of polling errors:

error: [polling_error] {“code”:“EFATAL”,“message”:“EFATAL: Error: connect ENOENT /bot8888888:token/getUpdates”}

I do not get any output from Authorized node in debug nodes. Finally here is edited output from chatbot debug node in Nodered log in hassio:

-- OUTBOUND MESSAGE --
type:      message
content:   Hello, testing, testing
chatId:    id_number
messageId: null
inbound:   false
silent:    false
fallback:  null
options: 
Error: EFATAL: Error: connect ENOENT /bot888888888:TOKEN/sendMessage
26 Oct 13:15:40 - [error] [chatbot-telegram-node:a9929f17.22e57] Error: EFATAL: Error: connect ENOENT /bot888888888:TOKEN/sendMessage
--------------------- ChatBot context (id:a60b8141.3a12b8) ---------------------
chatId:                    chatid number
userId:                     null
messageId:                  null
transport:                  telegram
authorized:                 false
pending:                    false
language:                   null
currentConversationNode:    24d49947.fea4ee
currentConversationNode_at: Sat Oct 26 2019 13:15:40 GMT+0100
--------------------- ChatBot message (id:a60b8141.3a12b8) ---------------------
type:      message
content:   Hello, testing, testing
chatId:    id_number
messageId: null
inbound:   false
silent:    false
fallback:  null
options:

Any advice would be really great, thx.

1 Like