Developing Bot
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from config import config
|
||||
|
||||
def is_user_admin(user_id: int) -> bool:
|
||||
return user_id in config.ADMIN_IDS
|
||||
|
||||
def is_chat_allowed(chat_id: int) -> bool:
|
||||
return chat_id in config.ALLOWED_CHAT_IDS
|
||||
Reference in New Issue
Block a user