mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Remove data field
This commit is contained in:
@@ -107,7 +107,10 @@ async def cache_file(book: Book, file_type: str) -> Optional[CachedFile]:
|
||||
return None
|
||||
|
||||
return await CachedFile.objects.create(
|
||||
object_id=book.id, object_type=file_type, data=upload_data.data
|
||||
object_id=book.id,
|
||||
object_type=file_type,
|
||||
message_id=upload_data.data["message_id"],
|
||||
chat_id=upload_data.data["chat_id"],
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user