Skip to content

replyPhoto

This page describes the replyPhoto() helper on Message, used to send a photo back to the same chat as the current message.

Function signature

ts
replyPhoto(photo: string, caption = ""): Promise<Message>

Example

ts
bot.on("text", async (message) => {
  await message.replyPhoto("https://example.com/image.jpg", "Sample image");
});

Relationship with sendPhoto()

replyPhoto() internally calls sendPhoto() with the current message.chat.id.

Next

Last updated: April 5, 2026

Built for Vietnamese developers, documented for everyone.