Class: TD::Types::StickerSetInfo
- Defined in:
- lib/tdlib/types/sticker_set_info.rb
Overview
Represents short information about a sticker set.
Instance Attribute Summary collapse
-
#covers ⇒ Array<TD::Types::Sticker>
Up to the first 5 stickers from the set, depending on the context.
-
#id ⇒ Integer
Identifier of the sticker set.
-
#is_allowed_as_chat_emoji_status ⇒ Boolean
True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only.
-
#is_archived ⇒ Boolean
True, if the sticker set has been archived.
-
#is_installed ⇒ Boolean
True, if the sticker set has been installed by the current user.
-
#is_official ⇒ Boolean
True, if the sticker set is official.
-
#is_owned ⇒ Boolean
True, if the sticker set is owned by the current user.
-
#is_viewed ⇒ Boolean
True for already viewed trending sticker sets.
-
#name ⇒ TD::Types::String
Name of the sticker set.
-
#needs_repainting ⇒ Boolean
True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only.
-
#size ⇒ Integer
Total number of stickers in the set.
-
#sticker_type ⇒ TD::Types::StickerType
Type of the stickers in the set.
-
#thumbnail ⇒ TD::Types::Thumbnail?
Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null.
-
#thumbnail_outline ⇒ Array<TD::Types::ClosedVectorPath>?
Sticker set thumbnail’s outline represented as a list of closed vector paths; may be empty.
-
#title ⇒ TD::Types::String
Title of the sticker set.
Method Summary
Methods inherited from Base
Instance Attribute Details
#covers ⇒ Array<TD::Types::Sticker>
Up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full sticker set needs to be requested.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def covers @covers end |
#id ⇒ Integer
Identifier of the sticker set.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def id @id end |
#is_allowed_as_chat_emoji_status ⇒ Boolean
True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def is_allowed_as_chat_emoji_status @is_allowed_as_chat_emoji_status end |
#is_archived ⇒ Boolean
True, if the sticker set has been archived. A sticker set can’t be installed and archived simultaneously.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def is_archived @is_archived end |
#is_installed ⇒ Boolean
True, if the sticker set has been installed by the current user.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def is_installed @is_installed end |
#is_official ⇒ Boolean
True, if the sticker set is official.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def is_official @is_official end |
#is_owned ⇒ Boolean
True, if the sticker set is owned by the current user.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def is_owned @is_owned end |
#is_viewed ⇒ Boolean
True for already viewed trending sticker sets.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def is_viewed @is_viewed end |
#name ⇒ TD::Types::String
Name of the sticker set.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def name @name end |
#needs_repainting ⇒ Boolean
True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def needs_repainting @needs_repainting end |
#size ⇒ Integer
Total number of stickers in the set.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def size @size end |
#sticker_type ⇒ TD::Types::StickerType
Type of the stickers in the set.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def sticker_type @sticker_type end |
#thumbnail ⇒ TD::Types::Thumbnail?
Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def thumbnail @thumbnail end |
#thumbnail_outline ⇒ Array<TD::Types::ClosedVectorPath>?
Sticker set thumbnail’s outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def thumbnail_outline @thumbnail_outline end |
#title ⇒ TD::Types::String
Title of the sticker set.
27 28 29 |
# File 'lib/tdlib/types/sticker_set_info.rb', line 27 def title @title end |