class VideoNote

Monday, August 24 2020 EAT

This object represents a video message

(available in Telegram apps as of v.4.0).

Public Instance Methods

duration() click to toggle source

Duration of the video in seconds as defined by sender.

# File lib/objects/video_note.rb, line 32
def duration
  @note.duration
end
file_id() click to toggle source

Identifier for this file, which can be used to download or reuse the file.

# File lib/objects/video_note.rb, line 16
def file_id
  @note.file_id
end
file_size() click to toggle source

Optional. File size

# File lib/objects/video_note.rb, line 37
def file_size
  @note.file_size
end
file_unique_id() click to toggle source

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

# File lib/objects/video_note.rb, line 22
def file_unique_id
  @note.file_unique_id
end
length() click to toggle source

Video width and height (diameter of the video message) as defined by sender.

# File lib/objects/video_note.rb, line 27
def length
  @note.length
end
thumb() click to toggle source

Optional. Video thumbnail. Returns PhotoSize object.

# File lib/objects/video_note.rb, line 42
def thumb
  data = @note.thumb
  return false unless data
 
  PhotoSize.new(data)
end