Class: TD::Types::StickerSet

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

Overview

Represents a sticker set.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#emojisArray<TD::Types::Emojis>

A list of emoji corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object.

Returns:



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def emojis
  @emojis
end

#idInteger

Identifier of the sticker set.

Returns:

  • (Integer)

    the current value of id



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def id
  @id
end

#is_animatedBoolean

True, is the stickers in the set are animated.

Returns:

  • (Boolean)

    the current value of is_animated



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def is_animated
  @is_animated
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



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

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



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def is_installed
  @is_installed
end

#is_masksBoolean

True, if the stickers in the set are masks.

Returns:

  • (Boolean)

    the current value of is_masks



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def is_masks
  @is_masks
end

#is_officialBoolean

True, if the sticker set is official.

Returns:

  • (Boolean)

    the current value of is_official



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def is_official
  @is_official
end

#is_viewedBoolean

True for already viewed trending sticker sets.

Returns:

  • (Boolean)

    the current value of is_viewed



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def is_viewed
  @is_viewed
end

#nameString

Name of the sticker set.

Returns:

  • (String)

    the current value of name



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def name
  @name
end

#stickersArray<TD::Types::Sticker>

List of stickers in this set.

Returns:



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def stickers
  @stickers
end

#thumbnailTD::Types::PhotoSize?

Sticker set thumbnail in WEBP format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed.

Returns:



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def thumbnail
  @thumbnail
end

#titleString

Title of the sticker set.

Returns:

  • (String)

    the current value of title



21
22
23
# File 'lib/tdlib/types/sticker_set.rb', line 21

def title
  @title
end