I'm using Telegraf to build a Node.js Telegram bot.
When I try to send a photo I use:
const bot = new Telegraf(process.env.BOT_TOKEN);
bot.on('text', (ctx) => ctx.replyWithPhoto(
{ url: 'https://i.picsum.photos/id/237/200/300.jpg' },
{ caption: 'This is *Bobby*!' }
));
bot.launch();
The resulting message includes the photo along with a plain text caption:
This is *Bobby*!
How do I make the caption to look formatted with markdown? Like this:
This is Bobby!