如何使用电报机器人回复引用消息?

How to quote a message using telegram bot reply?

我有一个机器人,它运行良好。但是我如何引用触发机器人的消息,以便用户知道机器人回复了他?

这是我用来 return 消息的代码。

return res.status(200).send({
    method: 'sendMessage',
    chat_id,
    text: `Hello, welcome to <bot_name>`,
    parse_mode: 'Markdown'
})

我想像这样在回复中引用该消息:

使用 sendMessagereply_to_message_id 设置为您要回复的原始消息 ID。

return res.status(200).send({
    method: 'sendMessage',
    chat_id,
    reply_to_message_id: messageIdtoReply,
    text: `Hello, welcome to <bot_name>`,
    parse_mode: 'Markdown'
})

参考:https://core.telegram.org/bots/api#sendmessage