This commit is contained in:
harold 2025-06-18 14:06:27 +05:00
parent a6a9f954c7
commit 65d527b9d2

View File

@ -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,
)