# Telegram Inline keyboard without Command node

**URL:** <https://discourse.nodered.org/t/telegram-inline-keyboard-without-command-node/13275>\
**Category:** General\
**Created:** [14 July 2019 18:59 UTC](https://discourse.nodered.org/t/telegram-inline-keyboard-without-command-node/13275 "2019-07-14T18:59:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [15 July 2019 09:32 UTC](https://discourse.nodered.org/t/telegram-inline-keyboard-without-command-node/13275/10 "2019-07-15T09:32:27Z")

</div>

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:

```auto
out = {
    method: "sendMessage",
    payload: {
        text: "Open the door",
        reply_markup: {
            inline_keyboard: [
                [{
                    text: "Yes"
                }],
                [{
                    text: "No"
                }]
            ]
        }
    }
}
return out;

```

command node -\> function node -\> telegram payload node  
Set the telegram payload node method to `-set-by-msg.method -`

The command node is the trigger.

---

_[View the full topic](https://discourse.nodered.org/t/telegram-inline-keyboard-without-command-node/13275)._
