Class: TD::Types::InputMessageContent::PaidMedia
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::PaidMedia
- 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
-
#caption ⇒ TD::Types::FormattedText
Message caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
-
#paid_media ⇒ Array<TD::Types::InputPaidMedia>
The content of the paid media.
-
#show_caption_above_media ⇒ Boolean
True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.
-
#star_count ⇒ Integer
The number of Telegram Stars that must be paid to see the media; 1-getOption(“paid_media_message_star_count_max”).
Method Summary
Methods inherited from Base
Instance Attribute Details
#caption ⇒ TD::Types::FormattedText
Message caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
11 12 13 |
# File 'lib/tdlib/types/input_message_content/paid_media.rb', line 11 def caption @caption end |
#paid_media ⇒ Array<TD::Types::InputPaidMedia>
The content of the paid media.
11 12 13 |
# File 'lib/tdlib/types/input_message_content/paid_media.rb', line 11 def paid_media @paid_media end |
#show_caption_above_media ⇒ Boolean
True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.
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_count ⇒ Integer
The number of Telegram Stars that must be paid to see the media; 1-getOption(“paid_media_message_star_count_max”).
11 12 13 |
# File 'lib/tdlib/types/input_message_content/paid_media.rb', line 11 def star_count @star_count end |