Class: Telegram::Bot::Types::VideoNote

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

#durationInteger (readonly)

Returns the value of attribute duration.

Returns:

  • (Integer)


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

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_note.rbs', line 8

def file_id
  @file_id
end

#file_sizeInteger? (readonly)

Returns the value of attribute file_size.

Returns:

  • (Integer, nil)


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

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_note.rbs', line 9

def file_unique_id
  @file_unique_id
end

#lengthInteger (readonly)

Returns the value of attribute length.

Returns:

  • (Integer)


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

def length
  @length
end

#thumbnailPhotoSize? (readonly)

Returns the value of attribute thumbnail.

Returns:



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

def thumbnail
  @thumbnail
end

Class Method Details

.new(file_id:, file_unique_id:, length:, duration:, thumbnail:, file_size:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(file_id:, file_unique_id:, length:, duration:, thumbnail:, file_size:) ⇒ instance

    Parameters:

    • file_id: (String)
    • file_unique_id: (String)
    • length: (Integer)
    • duration: (Integer)
    • thumbnail: (PhotoSize)
    • file_size: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (file_id: String, file_unique_id: String, length: Integer, duration: Integer, ?thumbnail: PhotoSize, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance