Class: Telegram::Bot::Types::InputPaidMediaVideo

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/input_paid_media_video.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#coverString? (readonly)

Returns the value of attribute cover.

Returns:

  • (String, nil)


11
12
13
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 11

def cover
  @cover
end

#durationInteger? (readonly)

Returns the value of attribute duration.

Returns:

  • (Integer, nil)


15
16
17
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 15

def duration
  @duration
end

#heightInteger? (readonly)

Returns the value of attribute height.

Returns:

  • (Integer, nil)


14
15
16
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 14

def height
  @height
end

#mediaString (readonly)

Returns the value of attribute media.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 9

def media
  @media
end

#start_timestampInteger? (readonly)

Returns the value of attribute start_timestamp.

Returns:

  • (Integer, nil)


12
13
14
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 12

def start_timestamp
  @start_timestamp
end

#supports_streamingBoolean? (readonly)

Returns the value of attribute supports_streaming.

Returns:

  • (Boolean, nil)


16
17
18
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 16

def supports_streaming
  @supports_streaming
end

#thumbnailString? (readonly)

Returns the value of attribute thumbnail.

Returns:

  • (String, nil)


10
11
12
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 10

def thumbnail
  @thumbnail
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 8

def type
  @type
end

#widthInteger? (readonly)

Returns the value of attribute width.

Returns:

  • (Integer, nil)


13
14
15
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 13

def width
  @width
end

Class Method Details

.new(type:, media:, thumbnail:, cover:, start_timestamp:, width:, height:, duration:, supports_streaming:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, media:, thumbnail:, cover:, start_timestamp:, width:, height:, duration:, supports_streaming:) ⇒ instance

    Parameters:

    • type: (String)
    • media: (String)
    • thumbnail: (String)
    • cover: (String)
    • start_timestamp: (Integer)
    • width: (Integer)
    • height: (Integer)
    • duration: (Integer)
    • supports_streaming: (Boolean)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/input_paid_media_video.rbs', line 6

def self.new: (?type: String, media: String, ?thumbnail: String, ?cover: String, ?start_timestamp: Integer, ?width: Integer, ?height: Integer, ?duration: Integer, ?supports_streaming: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance