This commit is contained in:
levina 2022-01-20 21:14:56 +07:00 committed by GitHub
parent 4efb82480c
commit a12886f3c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +0,0 @@
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