pyproject-build

This commit is contained in:
2023-10-14 14:52:04 +03:00
parent bc2fc7c9a0
commit 499893e10b
13 changed files with 100 additions and 75 deletions

29
validators/inbox.py Normal file
View File

@@ -0,0 +1,29 @@
from typing import Dict, Optional, List
class Message(Dict):
id: int
chat: str
author: int
body: str
createdAt: int
replyTo: Optional[int]
createdAt: int
updatedAt: Optional[int]
class Chat(Dict):
id: str
members: List[int]
admins: List[int]
title: str
updatedAt: int
createdAt: int
createdBy: int
description: Optional[str]
class ChatMember(Dict):
id: int
slug: str
name: str
userpic: Optional[str]
lastSeen: int
online: Optional[bool]