Class: TD::Types::MessageCopyOptions

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/message_copy_options.rb

Overview

Options to be used when a message content is copied without reference to the original sender. Service messages, messages with messageInvoice, messagePaidMedia, messagePremiumGiveaway, or

messagePremiumGiveawayWinners content can't be copied.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#new_captionTD::Types::FormattedText

New message caption; pass null to copy message without caption. Ignored if replace_caption is false.

Returns:



16
17
18
# File 'lib/tdlib/types/message_copy_options.rb', line 16

def new_caption
  @new_caption
end

#new_show_caption_above_mediaBoolean

True, if new caption must be shown above the animation; otherwise, new caption must be shown below the animation; not supported in secret chats. Ignored if replace_caption is false.

Returns:

  • (Boolean)

    the current value of new_show_caption_above_media



16
17
18
# File 'lib/tdlib/types/message_copy_options.rb', line 16

def new_show_caption_above_media
  @new_show_caption_above_media
end

#replace_captionBoolean

True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false.

Returns:

  • (Boolean)

    the current value of replace_caption



16
17
18
# File 'lib/tdlib/types/message_copy_options.rb', line 16

def replace_caption
  @replace_caption
end

#send_copyBoolean

True, if content of the message needs to be copied without reference to the original sender. Always true if the message is forwarded to a secret chat or is local.

Returns:

  • (Boolean)

    the current value of send_copy



16
17
18
# File 'lib/tdlib/types/message_copy_options.rb', line 16

def send_copy
  @send_copy
end