mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Updated Forwarding messages (markdown)
parent
74b209cb40
commit
ed19e59af5
|
@ -6,9 +6,9 @@ Either way, you are encouraged to use [`ForwardMessagesRequest`](https://lonamiw
|
||||||
from telethon.tl.functions.messages import ForwardMessagesRequest
|
from telethon.tl.functions.messages import ForwardMessagesRequest
|
||||||
# note the s ^
|
# note the s ^
|
||||||
|
|
||||||
messages = foo() # Logic to retrieve a few messages.
|
messages = foo() # retrieve a few messages (or even one, in a list)
|
||||||
from_entity = bar() # Who has the original messages.
|
from_entity = bar()
|
||||||
to_entity = baz() # Who you want to forward them to.
|
to_entity = baz()
|
||||||
|
|
||||||
client(ForwardMessagesRequest(
|
client(ForwardMessagesRequest(
|
||||||
from_peer=from_entity, # who sent these messages?
|
from_peer=from_entity, # who sent these messages?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user