mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-29 02:34:15 +03:00
Fix forwarding messages to channels (#705)
This commit is contained in:
parent
d379b26339
commit
986ddbe600
|
@ -846,7 +846,7 @@ class TelegramClient(TelegramBareClient):
|
|||
for update in result.updates:
|
||||
if isinstance(update, UpdateMessageID):
|
||||
random_to_id[update.random_id] = update.id
|
||||
elif isinstance(update, UpdateNewMessage):
|
||||
elif isinstance(update, (UpdateNewMessage, UpdateNewChannelMessage)):
|
||||
id_to_message[update.message.id] = update.message
|
||||
|
||||
return [id_to_message[random_to_id[rnd]] for rnd in req.random_id]
|
||||
|
|
Loading…
Reference in New Issue
Block a user