feat: support media photo download

This commit is contained in:
krau
2025-01-20 11:03:01 +08:00
parent a146871a9d
commit 45974917f2
6 changed files with 108 additions and 14 deletions

View File

@@ -20,6 +20,7 @@ var Cache *CommonCache
func initCache() {
gob.Register(types.File{})
gob.Register(tg.InputDocumentFileLocation{})
gob.Register(tg.InputPhotoFileLocation{})
Cache = &CommonCache{cache: freecache.NewCache(10 * 1024 * 1024)}
}