update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user