MadelineProtoDocs/docs/TD_docs/methods/forwardMessages.md

28 lines
1.3 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: forwardMessages
description: Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Method: forwardMessages
2018-04-01 13:19:25 +02:00
[Back to methods index](index.md)
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message
### Parameters:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|chat\_id|[int53](../types/int53.md) | Yes|Identifier of a chat to forward messages|
|from\_chat\_id|[int53](../types/int53.md) | Yes|Identifier of a chat to forward from|
|message\_ids|Array of [int53](../types/int53.md) | Yes|Identifiers of messages to forward|
|disable\_notification|[Bool](../types/Bool.md) | Yes|Pass true, to disable notification about the message, doesn't works if messages are forwarded to secret chat|
|from\_background|[Bool](../types/Bool.md) | Yes|Pass true, if the message is sent from background|
### Return type: [Messages](../types/Messages.md)