video-stream/cache/admins.py

18 lines
316 B
Python
Raw Normal View History

2021-09-13 23:09:26 +00:00
# Copyright (C) 2021 By VeezMusicProject
2021-09-09 01:18:24 +00:00
from typing import Dict, List
2021-09-12 04:36:22 +00:00
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 []