change
This commit is contained in:
parent
d98c1162f1
commit
3d6e93f19a
15
cache/admins.py
vendored
Normal file
15
cache/admins.py
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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 []
|
Loading…
Reference in New Issue
Block a user