diff --git a/getter/plugins/chat.py b/getter/plugins/chat.py index 14b3424..e5a32be 100644 --- a/getter/plugins/chat.py +++ b/getter/plugins/chat.py @@ -205,9 +205,9 @@ async def _(kst): ga = kst.client count = 0 yy = await kst.eor("`Processing...`") - async for x in ga.iter_dialogs(): + async for x in ga.iter_dialogs(ignore_pinned=True): if x.is_user and not x.entity.bot: - if x.id in DEVS: + if x.is_self or x.id in DEVS: continue try: await ga.delete_dialog(x.id, revoke=True) diff --git a/requirements.txt b/requirements.txt index 21f604c..ac3aa27 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,7 +21,7 @@ emoji==2.12.1 Unidecode==1.3.8 validators==0.28.3 telegraph==2.2.0 -requests==2.32.2 +requests==2.32.3 lottie==0.7.0 Pillow==10.3.0 CairoSVG==2.7.1