mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Use __call__() instead invoke()
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user