Class: Telegram::Bot::Types::Sticker
- Defined in:
- sig/telegram/bot/types/sticker.rbs
Instance Attribute Summary collapse
-
#custom_emoji_id ⇒ String?
readonly
Returns the value of attribute custom_emoji_id.
-
#emoji ⇒ String?
readonly
Returns the value of attribute emoji.
-
#file_id ⇒ String
readonly
Returns the value of attribute file_id.
-
#file_size ⇒ Integer?
readonly
Returns the value of attribute file_size.
-
#file_unique_id ⇒ String
readonly
Returns the value of attribute file_unique_id.
-
#height ⇒ Integer
readonly
Returns the value of attribute height.
-
#is_animated ⇒ Boolean
readonly
Returns the value of attribute is_animated.
-
#is_video ⇒ Boolean
readonly
Returns the value of attribute is_video.
-
#mask_position ⇒ MaskPosition?
readonly
Returns the value of attribute mask_position.
-
#needs_repainting ⇒ true?
readonly
Returns the value of attribute needs_repainting.
-
#premium_animation ⇒ File?
readonly
Returns the value of attribute premium_animation.
-
#set_name ⇒ String?
readonly
Returns the value of attribute set_name.
-
#thumbnail ⇒ PhotoSize?
readonly
Returns the value of attribute thumbnail.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#width ⇒ Integer
readonly
Returns the value of attribute width.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#custom_emoji_id ⇒ String? (readonly)
Returns the value of attribute custom_emoji_id.
20 21 22 |
# File 'sig/telegram/bot/types/sticker.rbs', line 20 def custom_emoji_id @custom_emoji_id end |
#emoji ⇒ String? (readonly)
Returns the value of attribute emoji.
16 17 18 |
# File 'sig/telegram/bot/types/sticker.rbs', line 16 def emoji @emoji end |
#file_id ⇒ String (readonly)
Returns the value of attribute file_id.
8 9 10 |
# File 'sig/telegram/bot/types/sticker.rbs', line 8 def file_id @file_id end |
#file_size ⇒ Integer? (readonly)
Returns the value of attribute file_size.
22 23 24 |
# File 'sig/telegram/bot/types/sticker.rbs', line 22 def file_size @file_size end |
#file_unique_id ⇒ String (readonly)
Returns the value of attribute file_unique_id.
9 10 11 |
# File 'sig/telegram/bot/types/sticker.rbs', line 9 def file_unique_id @file_unique_id end |
#height ⇒ Integer (readonly)
Returns the value of attribute height.
12 13 14 |
# File 'sig/telegram/bot/types/sticker.rbs', line 12 def height @height end |
#is_animated ⇒ Boolean (readonly)
Returns the value of attribute is_animated.
13 14 15 |
# File 'sig/telegram/bot/types/sticker.rbs', line 13 def is_animated @is_animated end |
#is_video ⇒ Boolean (readonly)
Returns the value of attribute is_video.
14 15 16 |
# File 'sig/telegram/bot/types/sticker.rbs', line 14 def is_video @is_video end |
#mask_position ⇒ MaskPosition? (readonly)
Returns the value of attribute mask_position.
19 20 21 |
# File 'sig/telegram/bot/types/sticker.rbs', line 19 def mask_position @mask_position end |
#needs_repainting ⇒ true? (readonly)
Returns the value of attribute needs_repainting.
21 22 23 |
# File 'sig/telegram/bot/types/sticker.rbs', line 21 def needs_repainting @needs_repainting end |
#premium_animation ⇒ File? (readonly)
Returns the value of attribute premium_animation.
18 19 20 |
# File 'sig/telegram/bot/types/sticker.rbs', line 18 def premium_animation @premium_animation end |
#set_name ⇒ String? (readonly)
Returns the value of attribute set_name.
17 18 19 |
# File 'sig/telegram/bot/types/sticker.rbs', line 17 def set_name @set_name end |
#thumbnail ⇒ PhotoSize? (readonly)
Returns the value of attribute thumbnail.
15 16 17 |
# File 'sig/telegram/bot/types/sticker.rbs', line 15 def thumbnail @thumbnail end |
#type ⇒ String (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'sig/telegram/bot/types/sticker.rbs', line 10 def type @type end |
#width ⇒ Integer (readonly)
Returns the value of attribute width.
11 12 13 |
# File 'sig/telegram/bot/types/sticker.rbs', line 11 def width @width end |
Class Method Details
.new(file_id:, file_unique_id:, type:, width:, height:, is_animated:, is_video:, thumbnail:, emoji:, set_name:, premium_animation:, mask_position:, custom_emoji_id:, needs_repainting:, file_size:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/sticker.rbs', line 6
def self.new: (file_id: String, file_unique_id: String, type: String, width: Integer, height: Integer, is_animated: bool, is_video: bool, ?thumbnail: PhotoSize, ?emoji: String, ?set_name: String, ?premium_animation: File, ?mask_position: MaskPosition, ?custom_emoji_id: String, ?needs_repainting: true, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|