# Telegrambot-home: switch: align buttons from top to botton instead left to right

**URL:** <https://discourse.nodered.org/t/telegrambot-home-switch-align-buttons-from-top-to-botton-instead-left-to-right/40627>\
**Category:** General\
**Created:** [8 February 2021 20:26 UTC](https://discourse.nodered.org/t/telegrambot-home-switch-align-buttons-from-top-to-botton-instead-left-to-right/40627 "2021-02-08T20:26:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodagrave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bodagrave/32/36775_2.png) [@bodagrave](https://discourse.nodered.org/u/bodagrave)\
**Post date:** [8 February 2021 20:26 UTC](https://discourse.nodered.org/t/telegrambot-home-switch-align-buttons-from-top-to-botton-instead-left-to-right/40627/1 "2021-02-08T20:26:26Z")

</div>

Hi Guys!

I'm struggling a bit with this one. I'm using the switch node from telegrambot-home. I want to make several buttons available with it. Unfortunately they all show up in one line, which makes the text on it quite unreadable because their width is drastically reduced.

Is there any chance getting the buttons from top to bottom instead of left to right?

Any help really would be appreciated!

---

<div class="post-metadata">

**Author:** ![bodagrave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bodagrave/32/36775_2.png) [@bodagrave](https://discourse.nodered.org/u/bodagrave)\
**Post date:** [9 February 2021 12:28 UTC](https://discourse.nodered.org/t/telegrambot-home-switch-align-buttons-from-top-to-botton-instead-left-to-right/40627/2 "2021-02-09T12:28:09Z")

</div>

If found this which might be useful for a workaround:

> [@Telegram Inline keyboard without Command node](https://discourse.nodered.org/t/telegram-inline-keyboard-without-command-node/13275/10):
>
> You will need read [through the documentation](https://core.telegram.org/bots/api#replykeyboardmarkup) of the telegram bot api. This is the general idea, put this in a function node: out = { method: "sendMessage", payload: { text: "Open the door", reply\_markup: { inline\_keyboard: [[{ text: "Yes" }], [{ text: "No" }] ] } } } return out; command node -\> function node -\> telegram payload no…

But will make the function quite complex if an answer should trigger anything home automatisation specific. Or do I get anything wrong here?

---

<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:** [10 April 2021 12:28 UTC](https://discourse.nodered.org/t/telegrambot-home-switch-align-buttons-from-top-to-botton-instead-left-to-right/40627/3 "2021-04-10T12:28:22Z")

</div>

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