class Tourmaline::PaidMediaInfo
- Tourmaline::PaidMediaInfo
- Reference
- Object
Overview
Describes the paid media added to a message.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(star_count : Int32 | Int64, paid_media : Array(Tourmaline::PaidMedia) = [] of Tourmaline::PaidMedia)
Instance Method Summary
-
#paid_media : Array(Tourmaline::PaidMedia)
Information about the paid media
-
#paid_media=(paid_media : Array(Tourmaline::PaidMedia))
Information about the paid media
-
#star_count : Int32 | Int64
The number of Telegram Stars that must be paid to buy access to the media
-
#star_count=(star_count : Int32 | Int64)
The number of Telegram Stars that must be paid to buy access to the media
Constructor Detail
def self.new(star_count : Int32 | Int64, paid_media : Array(Tourmaline::PaidMedia) = [] of Tourmaline::PaidMedia)
#
Instance Method Detail
def star_count : Int32 | Int64
#
The number of Telegram Stars that must be paid to buy access to the media
def star_count=(star_count : Int32 | Int64)
#
The number of Telegram Stars that must be paid to buy access to the media