Class: Telegram::Bot::Types::PaidMediaPreview
- Defined in:
- sig/telegram/bot/types/paid_media_preview.rbs
Instance Attribute Summary collapse
-
#duration ⇒ Integer?
readonly
Returns the value of attribute duration.
-
#height ⇒ Integer?
readonly
Returns the value of attribute height.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#width ⇒ Integer?
readonly
Returns the value of attribute width.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#duration ⇒ Integer? (readonly)
Returns the value of attribute duration.
11 12 13 |
# File 'sig/telegram/bot/types/paid_media_preview.rbs', line 11 def duration @duration end |
#height ⇒ Integer? (readonly)
Returns the value of attribute height.
10 11 12 |
# File 'sig/telegram/bot/types/paid_media_preview.rbs', line 10 def height @height end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/paid_media_preview.rbs', line 8 def type @type end |
#width ⇒ Integer? (readonly)
Returns the value of attribute width.
9 10 11 |
# File 'sig/telegram/bot/types/paid_media_preview.rbs', line 9 def width @width end |
Class Method Details
.new(type:, width:, height:, duration:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/paid_media_preview.rbs', line 6
def self.new: (?type: String, ?width: Integer, ?height: Integer, ?duration: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|