Class: TD::Types::MessageContent::PaidMedia
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::PaidMedia
- Defined in:
- lib/tdlib/types/message_content/paid_media.rb
Overview
A message with paid media.
Instance Attribute Summary collapse
-
#caption ⇒ TD::Types::FormattedText
Media caption.
-
#media ⇒ Array<TD::Types::PaidMedia>
Information about the media.
-
#show_caption_above_media ⇒ Boolean
True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.
-
#star_count ⇒ Integer
Number of Telegram Stars needed to buy access to the media in the message.
Method Summary
Methods inherited from Base
Instance Attribute Details
#caption ⇒ TD::Types::FormattedText
Media caption.
9 10 11 |
# File 'lib/tdlib/types/message_content/paid_media.rb', line 9 def caption @caption end |
#media ⇒ Array<TD::Types::PaidMedia>
Information about the media.
9 10 11 |
# File 'lib/tdlib/types/message_content/paid_media.rb', line 9 def media @media end |
#show_caption_above_media ⇒ Boolean
True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.
9 10 11 |
# File 'lib/tdlib/types/message_content/paid_media.rb', line 9 def show_caption_above_media @show_caption_above_media end |
#star_count ⇒ Integer
Number of Telegram Stars needed to buy access to the media in the message.
9 10 11 |
# File 'lib/tdlib/types/message_content/paid_media.rb', line 9 def star_count @star_count end |