Class: TD::Types::Sticker

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

Overview

Describes a sticker.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#emojiTD::Types::String

Emoji corresponding to the sticker.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def emoji
  @emoji
end

#formatTD::Types::StickerFormat

Sticker format.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def format
  @format
end

#full_typeTD::Types::StickerFullType

Sticker’s full type.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def full_type
  @full_type
end

#heightInteger

Sticker height; as defined by the sender.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def height
  @height
end

#idInteger

Unique sticker identifier within the set; 0 if none.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def id
  @id
end

#outlineArray<TD::Types::ClosedVectorPath>?

Sticker’s outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def outline
  @outline
end

#set_idInteger

Identifier of the sticker set to which the sticker belongs; 0 if none.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def set_id
  @set_id
end

#stickerTD::Types::File

File containing the sticker.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def sticker
  @sticker
end

#thumbnailTD::Types::Thumbnail?

Sticker thumbnail in WEBP or JPEG format; may be null.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def thumbnail
  @thumbnail
end

#widthInteger

Sticker width; as defined by the sender.



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def width
  @width
end