Class: TD::Types::MessageCopyOptions
- 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
-
#new_caption ⇒ TD::Types::FormattedText
New message caption; pass null to copy message without caption.
-
#new_show_caption_above_media ⇒ Boolean
True, if new caption must be shown above the animation; otherwise, new caption must be shown below the animation; not supported in secret chats.
-
#replace_caption ⇒ Boolean
True, if media caption of the message copy needs to be replaced.
-
#send_copy ⇒ Boolean
True, if content of the message needs to be copied without reference to the original sender.
Method Summary
Methods inherited from Base
Instance Attribute Details
#new_caption ⇒ TD::Types::FormattedText
New message caption; pass null to copy message without caption. Ignored if replace_caption is false.
16 17 18 |
# File 'lib/tdlib/types/message_copy_options.rb', line 16 def @new_caption end |
#new_show_caption_above_media ⇒ Boolean
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.
16 17 18 |
# File 'lib/tdlib/types/message_copy_options.rb', line 16 def @new_show_caption_above_media end |
#replace_caption ⇒ Boolean
True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false.
16 17 18 |
# File 'lib/tdlib/types/message_copy_options.rb', line 16 def @replace_caption end |
#send_copy ⇒ Boolean
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.
16 17 18 |
# File 'lib/tdlib/types/message_copy_options.rb', line 16 def send_copy @send_copy end |