Update main.py

This commit is contained in:
tiennm99 committed 2024-07-03 21:56:10 +07:00
1 parent 6a5e65d2f5
commit 0def9e7f47
1 file changed
-1
-1
View File
@@ -11,7 +11,6 @@ client = TelegramClient(phone, api_id, api_hash)
@client.on(events.NewMessage(chats=[source_group_id]))
async def forward_message(event):
try:
# Forward the message to the target group
await client.forward_messages(target_group_id, event.message)
except Exception as e:
print(f"Exception on forward_message: {str(e)}")