# 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:** 1\
**Showing post:** 2

<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?

---

_[View the full topic](https://discourse.nodered.org/t/telegrambot-home-switch-align-buttons-from-top-to-botton-instead-left-to-right/40627)._
