Пример #1
0
def stop(chat_id: int) -> bool:
    chat_id = get_channel(chat_id)
    if chat_id not in pytgcalls.active_calls:
        return False
    try:
        queues.clear(chat_id)
    except:
        pass
    pytgcalls.leave_group_call(chat_id)
    return True
Пример #2
0
async def stop(_, message: Message):
    if message.chat.id not in callsmusic.active_chats:
        await message.reply_text("❗️ Nothing is playing")
    else:
        try:
            queues.clear(message.chat.id)
        except QueueEmpty:
            pass

        await callsmusic.stop(message.chat.id)
        await message.reply_text("✅ Cleared the queue and left the call")
Пример #3
0
async def cbend(_, query: CallbackQuery):
    if query.message.chat.id not in callsmusic.active_chats:
        await query.edit_message_text("❗️ Nothing is playing", reply_markup=BACK_BUTTON)
    else:
        try:
            queues.clear(query.message.chat.id)
        except QueueEmpty:
            pass

        await callsmusic.stop(query.message.chat.id)
        await query.edit_message_text("✅ Cleared the queue and left the Voice Chat!", reply_markup=BACK_BUTTON)
Пример #4
0
async def stop(_, message: Message):
    if message.chat.id not in callsmusic.active_chats:
        await message.reply_text("Aku Tidak Bisa Memaksakan Berhentikan Lagu!")
    else:
        try:
            queues.clear(message.chat.id)
        except QueueEmpty:
            pass

        await callsmusic.stop(message.chat.id)
        await message.reply_text("Aku Sudah Keluar Dari Voice Call, Leave To Voice Call!")
Пример #5
0
async def stop(_, query: CallbackQuery):
    if message.chat.id not in callsmusic.active_chats:
        await query.message.reply_text("❗️ Nothing is playing")
    else:
        try:
            queues.clear(message.chat.id)
        except QueueEmpty:
            pass

        await callsmusic.stop(message.chat.id)
        await query.message.reply_text(
            "✅ Cleared the queue and left the Voice Chat!")
Пример #6
0
async def stop(_, message: Message):
    if message.chat.id not in callsmusic.active_chats:
        await message.reply_text("لا يتم تشغيل شيء ☹️")
    else:
        try:
            queues.clear(message.chat.id)
        except QueueEmpty:
            pass

        await callsmusic.stop(message.chat.id)
        await message.reply_text(
            "🗑 تم مسح قائمه الانتظار ومغادرة المكالمة... 🏃")
Пример #7
0
async def stop(_, message: Message):
    if message.chat.id not in callsmusic.active_chats:
        await message.reply_text("❗️ Tidak Bisa Dipaksakan Berhenti!")
    else:
        try:
            queues.clear(message.chat.id)
        except QueueEmpty:
            pass

        callsmusic.stop(message.chat.id)
        await message.reply_text(
            "✅ Lagu Kamu Sudah Berhenti/Keluar Dari Voice Chat!")