async def _(e):
    chat = await e.get_chat()
    admin = chat.admin_rights
    creator = chat.creator

    if not admin and not creator:
        return await e.edit(NO_ADMIN)
    new_rights = ChatAdminRights(invite_users=True)
    try:
        await e.client(startvc(e.chat_id))
        await e.edit("`Memulai Obrolan Suara...`")
    except Exception as ex:
        await e.edit(f"`{str(ex)}`")
Beispiel #2
0
async def start_voice(c):
    chat = await c.get_chat()
    admin = chat.admin_rights
    creator = chat.creator

    if not admin and not creator:
        await c.edit(f"**Maaf {ALIVE_NAME} Bukan Admin 👮**")
        return
    try:
        await c.client(startvc(c.chat_id))
        await c.edit("`Voice Chat Started...`")
    except Exception as ex:
        await c.edit(f"**ERROR:** `{ex}`")
Beispiel #3
0
async def start_voice(c):
    me = await c.client.get_me()
    chat = await c.get_chat()
    admin = chat.admin_rights
    creator = chat.creator

    if not admin and not creator:
        await edit_delete(c, f"**Maaf {me.first_name} Bukan Admin 👮**")
        return
    try:
        await c.client(startvc(c.chat_id))
        await edit_or_reply(c, "`Voice Chat Started...`")
    except Exception as ex:
        await edit_delete(c, f"**ERROR:** `{ex}`")
Beispiel #4
0
async def start_voice(c):
    chat = await c.get_chat()
    admin = chat.admin_rights
    creator = chat.creator
    photo = None

    if not admin and not creator:
        await c.edit("`Bunu etmək üçün admin olmalıyam!`")
        return
    try:
        await c.client(startvc(c.chat_id))
        await c.edit("`Səsli söhbət başladı!`")
    except Exception as ex:
        await c.edit(f"Bir xəta baş verdi\nXəta: `{ex}`")
async def start_voice(event):
    chat = await event.get_chat()
    admin = chat.admin_rights
    creator = chat.creator
    photo = None

    if not admin and not creator:
        await event.edit("*You Are Not An Admin* 👮🏻‍♂️")
        return
    try:
        await event.client(startvc(event.chat_id))
        await event.edit("`Voice Call Started` 🤗")
    except Exception as ex:
        await event.edit(f"Error : `{ex}`")
Beispiel #6
0
async def _(e):
    try:
        await e.client(startvc(e.chat_id))
        await eor(e, "`Voice Chat Started...`")
    except Exception as ex:
        await eor(e, f"`{ex}`")
Beispiel #7
0
async def _(e):
    try:
        await e.client(startvc(e.chat_id))
        await e.eor(get_string("vct_1"))
    except Exception as ex:
        await e.eor(f"`{ex}`")
Beispiel #8
0
async def _(event):
    try:
        await event.client(startvc(await get_call(event)))
        await event.edit(event, "`Voice Chat Started...`")
    except Exception as ex:
        await event.edit(event, f"`{str(ex)}`")