mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
20 lines
292 B
Python
20 lines
292 B
Python
import enum
|
|
|
|
from pydantic import BaseModel
|
|
from typing_extensions import TypedDict
|
|
|
|
|
|
class UploadBackend(enum.StrEnum):
|
|
bot = "bot"
|
|
user = "user"
|
|
|
|
|
|
class Data(TypedDict):
|
|
chat_id: int
|
|
message_id: int
|
|
|
|
|
|
class UploadedFile(BaseModel):
|
|
backend: UploadBackend
|
|
data: Data
|