disappearing images: implement

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-06-19 13:11:35 -06:00
parent 7963e52405
commit 2df6f73098
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func DownloadPhoto(ctx context.Context, client downloader.Client, media *tg.Mess
ThumbSize: largest.GetType(),
}
// TODO convert to streaming
// TODO convert to streaming?
var buf bytes.Buffer
storageFileTypeClass, err := downloader.NewDownloader().Download(client, &file).Stream(ctx, &buf)
if err != nil {