Class: TD::Types::MessageContent::PaidMedia

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/paid_media.rb

Overview

A message with paid media.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::FormattedText

Media caption.



9
10
11
# File 'lib/tdlib/types/message_content/paid_media.rb', line 9

def caption
  @caption
end

#mediaArray<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_mediaBoolean

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_countInteger

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