Skip to content

Commit

Permalink
Update yumidb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DAXXTEAM authored Mar 22, 2024
1 parent 2ab61c5 commit b028b65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DAXXMUSIC/utils/yumidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@

COMMANDERS = [ChatMemberStatus.ADMINISTRATOR, ChatMemberStatus.OWNER]

async def user_has_permission(chat_title : str, chat_id: int, user_id: int, permission: str,bot=True) -> tuple[bool, str]:
from typing import Tuple

async def user_has_permission(chat_title: str, chat_id: int, user_id: int, permission: str, bot=True) -> Tuple[bool, str]:



#async def user_has_permission(chat_title : str, chat_id: int, user_id: int, permission: str,bot=True) -> tuple[bool, str]:
try:
if user_id in SUDORES:
have_permission = True
Expand Down

0 comments on commit b028b65

Please sign in to comment.