diff --git a/Forwarding-messages.md b/Forwarding-messages.md index e4488dd..1bc9f1d 100644 --- a/Forwarding-messages.md +++ b/Forwarding-messages.md @@ -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 ))