Class: Telegram::Bot::Types::InputStoryContentVideo

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

#cover_frame_timestampFloat (readonly)

Returns the value of attribute cover_frame_timestamp.

Returns:

  • (Float)


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

def cover_frame_timestamp
  @cover_frame_timestamp
end

#durationFloat? (readonly)

Returns the value of attribute duration.

Returns:

  • (Float, nil)


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

def duration
  @duration
end

#is_animationBoolean? (readonly)

Returns the value of attribute is_animation.

Returns:

  • (Boolean, nil)


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

def is_animation
  @is_animation
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

#videoString (readonly)

Returns the value of attribute video.

Returns:

  • (String)


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

def video
  @video
end

Class Method Details

.new(type:, video:, duration:, cover_frame_timestamp:, is_animation:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, video:, duration:, cover_frame_timestamp:, is_animation:) ⇒ instance

    Parameters:

    • type: (String)
    • video: (String)
    • duration: (Float)
    • cover_frame_timestamp: (Float)
    • is_animation: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?type: String, video: String, ?duration: Float, ?cover_frame_timestamp: Float, ?is_animation: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance