Let get_input_peer do its magic internally, for reals

Lonami 2017-06-15 17:12:38 +02:00
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
))