# Switch on flow using telegram bot

**URL:** <https://discourse.nodered.org/t/switch-on-flow-using-telegram-bot/8464>\
**Category:** General\
**Created:** [28 February 2019 10:20 UTC](https://discourse.nodered.org/t/switch-on-flow-using-telegram-bot/8464 "2019-02-28T10:20:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZenoVD](https://avatars.discourse-cdn.com/v4/letter/z/41988e/32.png) [@ZenoVD](https://discourse.nodered.org/u/ZenoVD)\
**Post date:** [28 February 2019 10:20 UTC](https://discourse.nodered.org/t/switch-on-flow-using-telegram-bot/8464/1 "2019-02-28T10:20:57Z")

</div>

Hello,  
I am making a home security alarm for a school project and i want to turn turn it on and off wih Telegram bot.  
Does anyone have an idea of how I can do this? Scince I cannot connect my Telegram sender to my PIR SENSOR input..  
Kind regards, Zeno

 ![Screenshot_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/65d0e38bc8994ebe6fdc8e8342d7794a083978c4.png)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [28 February 2019 11:00 UTC](https://discourse.nodered.org/t/switch-on-flow-using-telegram-bot/8464/2 "2019-02-28T11:00:47Z")

</div>

See the cookbook for one example of how to do it.  
The PIR always triggers but the switch stops the messages if the system is "OFF"

[https://cookbook.nodered.org/basic/route-on-context](https://cookbook.nodered.org/basic/route-on-context)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [28 February 2019 11:16 UTC](https://discourse.nodered.org/t/switch-on-flow-using-telegram-bot/8464/3 "2019-02-28T11:16:54Z")

</div>

I sent you a possible solution (screenshot and sample NR flow) using Telegram (to another thread you posted) the other day.  
Have you not read it yet???

> [@Turn flow on/off via iphone](https://discourse.nodered.org/t/turn-flow-on-off-via-iphone/8395):
>
> Hello, Im making a home security alarm for a school project and I want to turn the project on/off via my mobile phone. I have looked on the internet but havent found anything usefull so far. Does anyone know if it is possible? I am using Iphone. Kind regards, Zeno

---

<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:** [28 February 2019 18:43 UTC](https://discourse.nodered.org/t/switch-on-flow-using-telegram-bot/8464/4 "2019-02-28T18:43:17Z")

</div>

You seem to have posted very similar requests several times now in the last few days. Under 2 different logins.
