fix
This commit is contained in:
@@ -2,7 +2,6 @@ from pyrogram import Error
|
||||
|
||||
from .client import get_client
|
||||
from .models import Chat, AggregationSource
|
||||
from .tasks import collect_new_messages
|
||||
|
||||
|
||||
def aggregation_source_deleted(sender, instance: AggregationSource, **kwargs):
|
||||
@@ -10,11 +9,6 @@ def aggregation_source_deleted(sender, instance: AggregationSource, **kwargs):
|
||||
Chat.objects.filter(chat_id=instance.chat_id).delete()
|
||||
|
||||
|
||||
def chat_created(sender, instance: Chat, created, **kwargs):
|
||||
if created:
|
||||
collect_new_messages.delay(instance.pk)
|
||||
|
||||
|
||||
def chat_deleted(sender, instance: Chat, **kwargs):
|
||||
with get_client() as client:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user