video-stream/driver/perms.py
2022-01-19 21:54:53 +07:00

11 lines
311 B
Python

import asyncio
from driver.veez import bot
from pyrogram.types import Message
async def member_permissions(chat_id: int, user_id: int):
perms = []
member = await bot.get_chat_member(chat_id, user_id)
if member.can_manage_voice_chats:
perms.append("can_manage_voice_chats")
return perms