Class: TD::Types::StickerSetInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/sticker_set_info.rb

Overview

Represents short information about a sticker set.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#coversArray<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.

Returns:



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def covers
  @covers
end

#idInteger

Identifier of the sticker set.

Returns:

  • (Integer)

    the current value of id



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def id
  @id
end

#is_allowed_as_chat_emoji_statusBoolean

True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only.

Returns:

  • (Boolean)

    the current value of is_allowed_as_chat_emoji_status



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_archivedBoolean

True, if the sticker set has been archived. A sticker set can’t be installed and archived simultaneously.

Returns:

  • (Boolean)

    the current value of is_archived



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def is_archived
  @is_archived
end

#is_installedBoolean

True, if the sticker set has been installed by the current user.

Returns:

  • (Boolean)

    the current value of is_installed



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def is_installed
  @is_installed
end

#is_officialBoolean

True, if the sticker set is official.

Returns:

  • (Boolean)

    the current value of is_official



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def is_official
  @is_official
end

#is_ownedBoolean

True, if the sticker set is owned by the current user.

Returns:

  • (Boolean)

    the current value of is_owned



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def is_owned
  @is_owned
end

#is_viewedBoolean

True for already viewed trending sticker sets.

Returns:

  • (Boolean)

    the current value of is_viewed



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def is_viewed
  @is_viewed
end

#nameTD::Types::String

Name of the sticker set.

Returns:

  • (TD::Types::String)

    the current value of name



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def name
  @name
end

#needs_repaintingBoolean

True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only.

Returns:

  • (Boolean)

    the current value of needs_repainting



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def needs_repainting
  @needs_repainting
end

#sizeInteger

Total number of stickers in the set.

Returns:

  • (Integer)

    the current value of size



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def size
  @size
end

#sticker_typeTD::Types::StickerType

Type of the stickers in the set.

Returns:



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def sticker_type
  @sticker_type
end

#thumbnailTD::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.

Returns:



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def thumbnail
  @thumbnail
end

#thumbnail_outlineArray<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.

Returns:



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def thumbnail_outline
  @thumbnail_outline
end

#titleTD::Types::String

Title of the sticker set.

Returns:

  • (TD::Types::String)

    the current value of title



27
28
29
# File 'lib/tdlib/types/sticker_set_info.rb', line 27

def title
  @title
end