From 729017aa4a7e1e54c0e7b3d7bd86911f459932ba Mon Sep 17 00:00:00 2001 From: Lonami Date: Sun, 9 Jul 2017 12:46:47 +0200 Subject: [PATCH] Use __call__() instead invoke() --- Forwarding-messages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Forwarding-messages.md b/Forwarding-messages.md index 1bc9f1d..4c98882 100644 --- a/Forwarding-messages.md +++ b/Forwarding-messages.md @@ -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