Class: Telegram::Bot::Types::Video

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/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

#coverArray[PhotoSize]? (readonly)

Returns the value of attribute cover.

Returns:



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

def cover
  @cover
end

#durationInteger (readonly)

Returns the value of attribute duration.

Returns:

  • (Integer)


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

def duration
  @duration
end

#file_idString (readonly)

Returns the value of attribute file_id.

Returns:

  • (String)


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

def file_id
  @file_id
end

#file_nameString? (readonly)

Returns the value of attribute file_name.

Returns:

  • (String, nil)


17
18
19
# File 'sig/telegram/bot/types/video.rbs', line 17

def file_name
  @file_name
end

#file_sizeInteger? (readonly)

Returns the value of attribute file_size.

Returns:

  • (Integer, nil)


19
20
21
# File 'sig/telegram/bot/types/video.rbs', line 19

def file_size
  @file_size
end

#file_unique_idString (readonly)

Returns the value of attribute file_unique_id.

Returns:

  • (String)


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

def file_unique_id
  @file_unique_id
end

#heightInteger (readonly)

Returns the value of attribute height.

Returns:

  • (Integer)


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

def height
  @height
end

#mime_typeString? (readonly)

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


18
19
20
# File 'sig/telegram/bot/types/video.rbs', line 18

def mime_type
  @mime_type
end

#qualitiesArray[VideoQuality]? (readonly)

Returns the value of attribute qualities.

Returns:



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

def qualities
  @qualities
end

#start_timestampInteger? (readonly)

Returns the value of attribute start_timestamp.

Returns:

  • (Integer, nil)


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

def start_timestamp
  @start_timestamp
end

#thumbnailPhotoSize? (readonly)

Returns the value of attribute thumbnail.

Returns:



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

def thumbnail
  @thumbnail
end

#widthInteger (readonly)

Returns the value of attribute width.

Returns:

  • (Integer)


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

def width
  @width
end

Class Method Details

.new(file_id:, file_unique_id:, width:, height:, duration:, thumbnail:, cover:, start_timestamp:, qualities:, file_name:, mime_type:, file_size:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(file_id:, file_unique_id:, width:, height:, duration:, thumbnail:, cover:, start_timestamp:, qualities:, file_name:, mime_type:, file_size:) ⇒ instance

    Parameters:

    • file_id: (String)
    • file_unique_id: (String)
    • width: (Integer)
    • height: (Integer)
    • duration: (Integer)
    • thumbnail: (PhotoSize)
    • cover: (Array[PhotoSize])
    • start_timestamp: (Integer)
    • qualities: (Array[VideoQuality])
    • file_name: (String)
    • mime_type: (String)
    • file_size: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (file_id: String, file_unique_id: String, width: Integer, height: Integer, duration: Integer, ?thumbnail: PhotoSize, ?cover: Array[PhotoSize], ?start_timestamp: Integer, ?qualities: Array[VideoQuality], ?file_name: String, ?mime_type: String, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance