video-stream/driver/perms.py

11 lines
311 B
Python
Raw Normal View History

2022-01-19 14:54:53 +00:00
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