pub async fn forward_messages(
chat_id: i64,
message_thread_id: i64,
from_chat_id: i64,
message_ids: Vec<i64>,
options: Option<MessageSendOptions>,
send_copy: bool,
remove_caption: bool,
client_id: i32,
) -> Result<Messages, Error>
Expand description
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can’t be forwarded, null will be returned instead of the message
§Arguments
chat_id
- Identifier of the chat to which to forward messagesmessage_thread_id
- If not 0, the message thread identifier in which the message will be sent; for forum threads onlyfrom_chat_id
- Identifier of the chat from which to forward messagesmessage_ids
- Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously. A message can be forwarded only if message.can_be_forwardedoptions
- Options to be used to send the messages; pass null to use default optionssend_copy
- Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are localremove_caption
- Pass true to remove media captions of message copies. Ignored if send_copy is falseclient_id
- The client id to send the request to