lib/tdlib/client_methods.rb
# 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.
#
# @param chat_id [Integer] Identifier of the chat to which to forward messages.
# @param from_chat_id [Integer] Identifier of the chat from which to forward messages.
# @param message_ids [Array<Integer>] Identifiers of the messages to forward.
#   Message identifiers must be in a strictly increasing order.
#   At most 100 messages can be forwarded simultaneously.
# @param options [TD::Types::MessageSendOptions] Options to be used to send the messages; pass null to use default
#   options.
# @param send_copy [Boolean] If true, content of the messages will be copied without reference to the original
#   sender.
#   Always true if the messages are forwarded to a secret chat or are local.
# @param remove_caption [Boolean] If true, media caption of message copies will be removed.
#   Ignored if send_copy is false.
# @param only_preview [Boolean] If true, messages will not be forwarded and instead fake messages will be returned.
# @return [TD::Types::Messages]
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.
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 .
def forward_messages(chat_id:, from_chat_id:, message_ids:, options:, send_copy:, remove_caption:, only_preview:)
    broadcast('@type'          => 'forwardMessages',
              'chat_id'        => chat_id,
              'from_chat_id'   => from_chat_id,
              'message_ids'    => message_ids,
              'options'        => options,
              'send_copy'      => send_copy,
              'remove_caption' => remove_caption,
              'only_preview'   => only_preview)
  end
def forward_messages ( chat_id : , from_chat_id : , message_ids : , options : , send_copy : , remove_caption : , only_preview : ) broadcast ( '@type' => 'forwardMessages' , 'chat_id' => chat_id , 'from_chat_id' => from_chat_id , 'message_ids' => message_ids , 'options' => options , 'send_copy' => send_copy , 'remove_caption' => remove_caption , 'only_preview' => only_preview ) end
Forwards previously sent messages.
Forwards previously sent messages .
None
TD::Types::Messages
chat_id
Identifier of the chat to which to forward messages.
Identifier of the chat to which to forward messages .
from_chat_id
Identifier of the chat from which to forward messages.
Identifier of the chat from which to forward messages .
message_ids
Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously.
Identifiers of the messages to forward . Message identifiers must be in a strictly increasing order . At most 100 messages can be forwarded simultaneously .
options
Options to be used to send the messages; pass null to use default options.
Options to be used to send the messages ; pass null to use default options .
send_copy
If true, content of the messages will be copied without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local.
If true content of the messages will be copied without reference to the original sender . Always true if the messages are forwarded to a secret chat or are local .
remove_caption
If true, media caption of message copies will be removed. Ignored if send_copy is false.
If true media caption of message copies will be removed . Ignored if send_copy is false .
only_preview
If true, messages will not be forwarded and instead fake messages will be returned.
If true messages will not be forwarded and instead fake messages will be returned .