forwardMessages¶
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
forwardMessages(
chat_id: int53,
topic_id: MessageTopic,
from_chat_id: int53,
message_ids: list of int53,
options: MessageSendOptions,
send_copy: Bool,
remove_caption: Bool
) → Messages
chat_id¶
int53
Identifier of the chat to which to forward messages
topic_id¶
Topic in which the messages will be forwarded; message threads aren't supported; pass null if none
from_chat_id¶
int53
Identifier of the chat from which to forward messages
message_ids¶
list of int53
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 messageProperties.can_be_forwarded
options¶
Options to be used to send the messages; pass null to use default options
send_copy¶
Bool
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 local. Use messageProperties.can_be_copied and messageProperties.can_be_copied_to_secret_chat to check whether the message is suitable
remove_caption¶
Bool
Pass true to remove media captions of message copies. Ignored if send_copy is false