mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-12 09:02:24 +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.
|
from_entity = bar() # Who has the original messages.
|
||||||
to_entity = baz() # Who you want to forward them to.
|
to_entity = baz() # Who you want to forward them to.
|
||||||
|
|
||||||
client.invoke(ForwardMessagesRequest(
|
client(ForwardMessagesRequest(
|
||||||
from_peer=from_entity,
|
from_peer=from_entity,
|
||||||
id=[msg.id for msg in messages],
|
id=[msg.id for msg in messages],
|
||||||
to_peer=to_entity
|
to_peer=to_entity
|
||||||
|
|
Loading…
Reference in New Issue
Block a user