I've a bot.telegram.sendPhoto()
with this code:
bot.telegram.sendPhoto(
channel_id,
{source: filepath},
{
caption: description.join("\n"),
parse_mode: 'MarkdownV2'
}
)
(description is an array with some text.
So i would to add some buttons and then perform an action but how can i do? I've tried in this way:
const buttons = Markup.keyboard([
["Test", "Test2"]
]).oneTime().resize().extra()
and then added it into the {...} after parse_mode:
{
caption: description.join("\n"),
parse_mode: 'MarkdownV2',
buttons
}
but it doesn't work. And i tried also after the {...}
{
caption: description.join("\n"),
parse_mode: 'MarkdownV2'
},
buttons
but it still doesn't work. So how can i do? Thank you