From 65d527b9d257800c7f2fc97a5b65fadc75affb89 Mon Sep 17 00:00:00 2001 From: harold Date: Wed, 18 Jun 2025 14:06:27 +0500 Subject: [PATCH] add fix --- telegram-application/src/core/tg_service/notify_success.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telegram-application/src/core/tg_service/notify_success.py b/telegram-application/src/core/tg_service/notify_success.py index 7f83dbe..ae3e6ef 100644 --- a/telegram-application/src/core/tg_service/notify_success.py +++ b/telegram-application/src/core/tg_service/notify_success.py @@ -12,6 +12,8 @@ async def notify_for_success( success_reason: str, user_model: User, ) -> None: + source_chat = await telethon_client.get_entity(int("-100" + str(chat.id))) + message = create_and_format_message( reason=success_reason, user_model=user_model, @@ -25,5 +27,5 @@ async def notify_for_success( await telethon_client.forward_messages( entity=settings.NOTIFY.CHAT_ID, messages=[message.id for message in messages], - from_peer=chat.id, + from_peer=source_chat, )