# Telegram Question - Changing editMessageText to a photo?

**URL:** <https://discourse.nodered.org/t/telegram-question-changing-editmessagetext-to-a-photo/78549>\
**Category:** General\
**Created:** [19 May 2023 17:14 UTC](https://discourse.nodered.org/t/telegram-question-changing-editmessagetext-to-a-photo/78549 "2023-05-19T17:14:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulldad](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fulldad](https://discourse.nodered.org/u/fulldad)\
**Post date:** [19 May 2023 17:14 UTC](https://discourse.nodered.org/t/telegram-question-changing-editmessagetext-to-a-photo/78549/1 "2023-05-19T17:14:58Z")

</div>

Seems like something easy but i just can't figure it out. I have a message for inline keyboard. All i want to do is add a photo into the message. Anyone able to help? Appreciate it

```auto

// This is the message id of the initial keyboard that is simply exchanged by a new one.
var messageId = context.global.keyboard.messageId;

// This is a sample of how to send a second inline keyboard with modified buttons
var reply_markup = JSON.stringify({
    "inline_keyboard": [

        [{
            "text": "main menu",
            "callback_data": "baskettab"
        },
        {
            "text": "Back",
            "callback_data": "back"
        }]]
});

var options = {
    chat_id: msg.payload[0].chatId,
    reply_markup: reply_markup,
    message_id: msg.payload[0].messageId
};

msg.payload.type = 'editMessageText';
msg.payload.content = msg.payload[1][0].proddesc;
msg.payload.options = options;

return [msg];

```

---

<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:** [18 July 2023 17:15 UTC](https://discourse.nodered.org/t/telegram-question-changing-editmessagetext-to-a-photo/78549/2 "2023-07-18T17:15:56Z")

</div>

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