Class: TD::Types::InputSticker

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

Overview

A sticker to be added to a sticker set.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#emojisTD::Types::String

String with 1-20 emoji corresponding to the sticker.

Returns:

  • (TD::Types::String)

    the current value of emojis



12
13
14
# File 'lib/tdlib/types/input_sticker.rb', line 12

def emojis
  @emojis
end

#formatTD::Types::StickerFormat

Format of the sticker.

Returns:



12
13
14
# File 'lib/tdlib/types/input_sticker.rb', line 12

def format
  @format
end

#keywordsArray<TD::Types::String>

List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.

Returns:

  • (Array<TD::Types::String>)

    the current value of keywords



12
13
14
# File 'lib/tdlib/types/input_sticker.rb', line 12

def keywords
  @keywords
end

#mask_positionTD::Types::MaskPosition

Position where the mask is placed; pass null if not specified.

Returns:



12
13
14
# File 'lib/tdlib/types/input_sticker.rb', line 12

def mask_position
  @mask_position
end

#stickerTD::Types::InputFile

File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See core.telegram.org/animated_stickers#technical-requirements for technical requirements.

Returns:



12
13
14
# File 'lib/tdlib/types/input_sticker.rb', line 12

def sticker
  @sticker
end