ForwardMessages

public struct ForwardMessages : Codable, Equatable, TDFunction

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

  • Undocumented

    Declaration

    Swift

    public typealias Result = Messages
  • Identifier of the chat to which to forward messages

    Declaration

    Swift

    public let chatId: Int53
  • Identifier of the chat from which to forward messages

    Declaration

    Swift

    public let fromChatId: Int53
  • Identifiers of the messages to forward

    Declaration

    Swift

    public let messageIds: [Int53]
  • Options to be used to send the messages

    Declaration

    Swift

    public let options: SendMessageOptions
  • True, if the messages should be grouped into an album after forwarding. For this to work, no more than 10 messages may be forwarded, and all of them must be photo or video messages

    Declaration

    Swift

    public let asAlbum: Bool
  • True, if content of the messages needs to be copied without links to the original messages. Always true if the messages are forwarded to a secret chat

    Declaration

    Swift

    public let sendCopy: Bool
  • True, if media captions of message copies needs to be removed. Ignored if send_copy is false

    Declaration

    Swift

    public let removeCaption: Bool
  • 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

    Declaration

    Swift

    public init(chatId: Int53, fromChatId: Int53, messageIds: [Int53], options: SendMessageOptions, asAlbum: Bool, sendCopy: Bool, removeCaption: Bool)

    Parameters

    chatId

    Identifier of the chat to which to forward messages

    fromChatId

    Identifier of the chat from which to forward messages

    messageIds

    Identifiers of the messages to forward

    options

    Options to be used to send the messages

    asAlbum

    True, if the messages should be grouped into an album after forwarding. For this to work, no more than 10 messages may be forwarded, and all of them must be photo or video messages

    sendCopy

    True, if content of the messages needs to be copied without links to the original messages. Always true if the messages are forwarded to a secret chat

    removeCaption

    True, if media captions of message copies needs to be removed. Ignored if send_copy is false