mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Let get_input_peer do its magic internally, for reals
parent
aebe48527c
commit
862f63e39c
|
@ -8,7 +8,7 @@ from_entity = bar() # Who has the original messages.
|
|||
to_entity = baz() # Who you want to forward them to.
|
||||
|
||||
client.invoke(ForwardMessagesRequest(
|
||||
from_peer=get_input_peer(from_entity),
|
||||
from_peer=from_entity,
|
||||
id=[msg.id for msg in messages],
|
||||
to_peer=to_entity
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue
Block a user