Exemplo n.º 1
0
async def _(e):
    try:
        await e.client(stopvc(await get_call(e)))
        await eor(e, "`Voice Chat Stopped...`")
        vcdyno("off")
    except Exception as ex:
        await eor(e, f"`{str(ex)}`")
Exemplo n.º 2
0
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(stopvc(await get_call(e)))
        await e.edit("`Menghentikan Obrolan Suara...`")
    except Exception as ex:
        await e.edit(f"`{str(ex)}`")
Exemplo n.º 3
0
async def stop_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(stopvc(await get_call(c)))
        await c.edit("`Voice Chat Stopped...`")
    except Exception as ex:
        await c.edit(f"**ERROR:** `{ex}`")
Exemplo n.º 4
0
async def stop_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(stopvc(await get_call(c)))
        await edit_or_reply(c, "`Voice Chat Stopped...`")
    except Exception as ex:
        await edit_delete(c, f"**ERROR:** `{ex}`")
Exemplo n.º 5
0
async def stop_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(stopvc(await get_call(c)))
        await c.edit("`Səsli söhbət uğurla sonlandırıldı!`")
    except Exception as ex:
        await c.edit(f"Bir xəta baş verdi\nXəta: `{ex}`")
Exemplo n.º 6
0
async def stop_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(stopvc(await get_call(event)))
        await event.edit("`The Group Call Was Stopped` 😥")
    except Exception as ex:
        await event.edit(f"Error : `{ex}`")
Exemplo n.º 7
0
async def _(e):
    try:
        await e.client(stopvc(await get_call(e)))
        await e.eor(get_string("vct_4"))
    except Exception as ex:
        await e.eor(f"`{ex}`")
Exemplo n.º 8
0
async def _(event):
    try:
        await event.client(stopvc(await get_call(event)))
        await event.edit(event, "`Voice Chat Stopped...`")
    except Exception as ex:
        await event.edit(event, f"`{str(ex)}`")