mirror of
https://github.com/tiennm99/forward-telegram-message.git
synced 2026-10-13 22:15:43 +00:00
Update main.py
This commit is contained in:
1 parent
6a5e65d2f5
commit
0def9e7f47
1 file changed
-1
@@ -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)}")
|
||||
|
||||
Reference in new issue
Block a user