I'm currently generating an image buffer and sending it to a group using
ctx.replyWithPhoto({ source: myBuffer, filename: "image.png" });
I'm wanting to reuse this photo to send later and I figured I could use Telegrams file_id
for this, but I can't find a way to actually get it. Every example I find is about somone sending a photo to the bot, not the bot creating and sending the photo to the chat.
Any help or ideas on how to do this would be appreciated.