mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Add import line
parent
8e0d018054
commit
0602215b55
|
@ -3,6 +3,8 @@ For some reason, [`ForwardMessageRequest`](https://lonamiwebs.github.io/Telethon
|
||||||
You should use [`ForwardMessagesRequest`](https://lonamiwebs.github.io/Telethon/methods/messages/forward_messages.html) (note it's _Message**s**_, plural) as follows:
|
You should use [`ForwardMessagesRequest`](https://lonamiwebs.github.io/Telethon/methods/messages/forward_messages.html) (note it's _Message**s**_, plural) as follows:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
from telethon.tl.functions.messages import ForwardMessagesRequest
|
||||||
|
|
||||||
messages = foo() # Logic to retrieve a few messages.
|
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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user