This commit is contained in:
2021-03-11 23:43:54 +03:00
parent 22bce5b147
commit a86ddf61bf
35 changed files with 1129 additions and 801 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from pyrogram import Error
from pyrogram.errors import RPCError
from .client import get_client
from .models import Chat, AggregationSource
@@ -13,5 +13,5 @@ def chat_deleted(sender, instance: Chat, **kwargs):
with get_client() as client:
try:
client.leave_chat(instance.chat_id)
except Error:
except RPCError:
pass