Class: TD::Types::InputMessageContent::PaidMedia

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/paid_media.rb

Overview

A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::FormattedText

Message caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.

Returns:



11
12
13
# File 'lib/tdlib/types/input_message_content/paid_media.rb', line 11

def caption
  @caption
end

The content of the paid media.

Returns:



11
12
13
# File 'lib/tdlib/types/input_message_content/paid_media.rb', line 11

def paid_media
  @paid_media
end

#show_caption_above_mediaBoolean

True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.

Returns:

  • (Boolean)

    the current value of show_caption_above_media



11
12
13
# File 'lib/tdlib/types/input_message_content/paid_media.rb', line 11

def show_caption_above_media
  @show_caption_above_media
end

#star_countInteger

The number of Telegram Stars that must be paid to see the media; 1-getOption(“paid_media_message_star_count_max”).

Returns:

  • (Integer)

    the current value of star_count



11
12
13
# File 'lib/tdlib/types/input_message_content/paid_media.rb', line 11

def star_count
  @star_count
end