9 lines
234 B
Python
9 lines
234 B
Python
import threading
|
|
|
|
users_lock = threading.Lock()
|
|
messages_lock = threading.Lock()
|
|
|
|
users_by_id: dict[str, dict] = {}
|
|
users_by_username: dict[str, dict] = {}
|
|
chats_by_id: dict[str, dict] = {}
|
|
messages_by_chat: dict[str, list[dict]] = {} |