defstudio / telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots
MIT License
674 stars 116 forks source link

Send Photo by file_id #578

Closed btcgod77 closed 5 months ago

btcgod77 commented 5 months ago

Is it possible to send a message with a photo that will be used permanently for a specific message. I would not like to download the same image from the server every time when sending. How to implement send by file_id in this case? https://core.telegram.org/bots/api#sending-files

Thank you.

fabio-ivona commented 5 months ago
Telegraph::photo($telegramFileId)->send();