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 a link to the original message. Service messages and messageInvoice 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. Ignored if replace_caption is false.

Returns:



12
13
14
# File 'lib/tdlib/types/message_copy_options.rb', line 12

def new_caption
  @new_caption
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



12
13
14
# File 'lib/tdlib/types/message_copy_options.rb', line 12

def replace_caption
  @replace_caption
end

#send_copyBoolean

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

Returns:

  • (Boolean)

    the current value of send_copy



12
13
14
# File 'lib/tdlib/types/message_copy_options.rb', line 12

def send_copy
  @send_copy
end