Closed ykarulin closed 7 months ago
The File struct contains FilePath field.
File
FilePath
To access the file, we need to construct URL using the bot token and file path:
https://api.telegram.org/file/bot<token>/<file_path>
Would storing directly in the File struct or somewhere else make sense?
Added function func (b *Bot) FileDownloadLink(f *models.File) string in v0.8.3
func (b *Bot) FileDownloadLink(f *models.File) string
v0.8.3
The
File
struct containsFilePath
field.To access the file, we need to construct URL using the bot token and file path:
https://api.telegram.org/file/bot<token>/<file_path>
Would storing directly in the
File
struct or somewhere else make sense?