Class: Telegram::Bot::Types::InputProfilePhotoAnimated

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

#animationString (readonly)

Returns the value of attribute animation.

Returns:

  • (String)


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

def animation
  @animation
end

#main_frame_timestampFloat (readonly)

Returns the value of attribute main_frame_timestamp.

Returns:

  • (Float)


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

def main_frame_timestamp
  @main_frame_timestamp
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

Class Method Details

.new(type:, animation:, main_frame_timestamp:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, animation:, main_frame_timestamp:) ⇒ instance

    Parameters:

    • type: (String)
    • animation: (String)
    • main_frame_timestamp: (Float)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?type: String, animation: String, ?main_frame_timestamp: Float) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance