Class: Telegrammer::DataTypes::Video

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/video.rb

Overview

Telegram Video data type

See more at core.telegram.org/bots/api#video

Instance Attribute Summary collapse

Instance Attribute Details

#durationInteger

Duration of the video in seconds as defined by sender

Returns:

  • (Integer)

    the current value of duration



14
15
16
# File 'lib/telegrammer/data_types/video.rb', line 14

def duration
  @duration
end

#file_idString

Unique file identifier

Returns:

  • (String)

    the current value of file_id



14
15
16
# File 'lib/telegrammer/data_types/video.rb', line 14

def file_id
  @file_id
end

#file_sizeString

Optional. File size

Returns:

  • (String)

    the current value of file_size



14
15
16
# File 'lib/telegrammer/data_types/video.rb', line 14

def file_size
  @file_size
end

#heightInteger

Video height as defined by sender

Returns:

  • (Integer)

    the current value of height



14
15
16
# File 'lib/telegrammer/data_types/video.rb', line 14

def height
  @height
end

#mime_typeString

Optional. Mime type of a file as defined by sender

Returns:

  • (String)

    the current value of mime_type



14
15
16
# File 'lib/telegrammer/data_types/video.rb', line 14

def mime_type
  @mime_type
end

#thumbTelegrammer::DataTypes::PhotoSize

Video thumbnail

Returns:



14
15
16
# File 'lib/telegrammer/data_types/video.rb', line 14

def thumb
  @thumb
end

#widthInteger

Video width as defined by sender

Returns:

  • (Integer)

    the current value of width



14
15
16
# File 'lib/telegrammer/data_types/video.rb', line 14

def width
  @width
end