From 5cb4c8d7aaba38c274aac0d374d48c6768950fa1 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Thu, 10 Feb 2022 11:12:36 +0700 Subject: [PATCH] remove one from db --- program/developer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/developer.py b/program/developer.py index f707b5c..ad2c8eb 100644 --- a/program/developer.py +++ b/program/developer.py @@ -14,6 +14,7 @@ from config import BOT_USERNAME as bname from driver.core import bot from driver.filters import command from pyrogram import Client, filters +from driver.database.dbchat import remove_served_chat from driver.decorators import bot_creator, sudo_users_only, errors from pyrogram.types import Message, InlineKeyboardButton, InlineKeyboardMarkup @@ -181,6 +182,7 @@ async def bot_leave_group(_, message): chat = message.text.split(None, 2)[1] try: await bot.leave_chat(chat) + await remove_served_chat(chat) except Exception as e: await message.reply_text(f"❌ procces failed\n\nreason: `{e}`") print(e)