Telegram bot node red

hi all
i am trying to use telegram bot to activate my home automation.
i put the on/off trigger from my system, i connected my telegram bot to node-red, i can get the buttons in telegram when i send the /1 command, but i i dont understand how to make it on/off based on the button i clicked in the bot. i must miss some node in between, no?

thank you!

Seems like you need a switch node between pick button and turn on/off, if I understand what you’re trying to do.