Use __call__() instead invoke()

Lonami 2017-07-09 12:46:47 +02:00
parent 67418680a7
commit 729017aa4a

@ -7,7 +7,7 @@ messages = foo() # Logic to retrieve a few messages.
from_entity = bar() # Who has the original messages.
to_entity = baz() # Who you want to forward them to.
client.invoke(ForwardMessagesRequest(
client(ForwardMessagesRequest(
from_peer=from_entity,
id=[msg.id for msg in messages],
to_peer=to_entity