# Contrib-TelegramBot-Home

**URL:** <https://discourse.nodered.org/t/contrib-telegrambot-home/70238>\
**Category:** General\
**Tags:** function-node\
**Created:** [8 November 2022 06:10 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238 "2022-11-08T06:10:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SplitSecComp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/splitseccomp/32/39802_2.png) [@SplitSecComp](https://discourse.nodered.org/u/SplitSecComp)\
**Post date:** [8 November 2022 06:10 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238/1 "2022-11-08T06:10:54Z")

</div>

Good Morning.

I am using Contrib-TelgramBot-Home quite successfully. Everything works.

I am battling to get the code right to send a global variable from a function node as a message with TelegramBot-home..

Kindly assist.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [8 November 2022 07:18 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238/2 "2022-11-08T07:18:35Z")

</div>

As we cannot guess your setup, your messages, payload, flow(s), it is kind of hard to provide help.

Can you share incoming example data and expected output data ?

---

<div class="post-metadata">

**Author:** ![SplitSecComp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/splitseccomp/32/39802_2.png) [@SplitSecComp](https://discourse.nodered.org/u/SplitSecComp)\
**Post date:** [8 November 2022 08:38 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238/3 "2022-11-08T08:38:49Z")

</div>

I want to send the following variables as a message with Telegram-bot-home

> Blockquote

var fridgetemp = global.get("FridgeTemp");  
var fridgealarm = global.get("FridgeAlarm")  
var power\_on = global.get("Power\_On");  
msg.payload = fridgealarm + fridgetemp + " " + "Celsuis." + " " + "Power = " + power\_on;  
return msg;

> Blockquote

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 November 2022 08:50 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238/4 "2022-11-08T08:50:54Z")

</div>

And what do you see in a debug node after that function?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 November 2022 14:56 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238/5 "2022-11-08T14:56:42Z")

</div>

> [@SplitSecComp](#):
>
> Contrib-TelgramBot-Home

Not sure how useful that node still is given that it hasn't been updated in 12m and the Telegram bot API has changed quite a bit since then.

---

<div class="post-metadata">

**Author:** ![SplitSecComp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/splitseccomp/32/39802_2.png) [@SplitSecComp](https://discourse.nodered.org/u/SplitSecComp)\
**Post date:** [8 November 2022 15:11 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238/6 "2022-11-08T15:11:13Z")

</div>

I have changed over to the standard contrib-telegrambot and now i have everything working.

Many thanks i am sorted.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 November 2022 15:11 UTC](https://discourse.nodered.org/t/contrib-telegrambot-home/70238/7 "2022-11-22T15:11:55Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
