go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.62k stars 868 forks source link

Send photo/video by FileID #573

Closed appleGun22 closed 1 year ago

appleGun22 commented 1 year ago

I'm pretty new to the library, and to go too, so maybe I just didn't find the method suit to this, but I need to resend existing video and photo files to another chat by its FileID, so I don't need to install it. Is there a way to do it?

appleGun22 commented 1 year ago

Found it, I had to use tgbotapi.FileID() in order to use existing files ids