video-stream/cache/admins.py

17 lines
302 B
Python
Raw Normal View History

2021-09-09 01:18:24 +00:00
from typing import Dict, List
2021-09-12 04:36:22 +00:00
# from config import admins
from config import Veez
2021-09-09 01:18:24 +00:00
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 []