video-stream/cache/admins.py

16 lines
276 B
Python
Raw Permalink Normal View History

2021-10-25 08:23:36 +00:00
from config import admins
from typing import Dict, List
admins: Dict[int, List[int]] = {}
def set(chat_id: int, admins_: List[int]):
admins[chat_id] = admins_
def get(chat_id: int) -> List[int]:
if chat_id in admins:
return admins[chat_id]
return []