mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
Add create_file endpoint
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
from pydantic import BaseModel, constr
|
||||
|
||||
|
||||
class CreateUploadedFile(BaseModel):
|
||||
backend: constr(max_length=16) # type: ignore
|
||||
data: dict
|
||||
upload_time: datetime
|
||||
|
||||
|
||||
class UploadedFile(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user