Class: TD::Types::InputSticker
- Defined in:
- lib/tdlib/types/input_sticker.rb
Overview
A sticker to be added to a sticker set.
Instance Attribute Summary collapse
-
#emojis ⇒ TD::Types::String
String with 1-20 emoji corresponding to the sticker.
-
#format ⇒ TD::Types::StickerFormat
Format of the sticker.
-
#keywords ⇒ Array<TD::Types::String>
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.
-
#mask_position ⇒ TD::Types::MaskPosition
Position where the mask is placed; pass null if not specified.
-
#sticker ⇒ TD::Types::InputFile
File with the sticker; must fit in a 512x512 square.
Method Summary
Methods inherited from Base
Instance Attribute Details
#emojis ⇒ TD::Types::String
String with 1-20 emoji corresponding to the sticker.
12 13 14 |
# File 'lib/tdlib/types/input_sticker.rb', line 12 def emojis @emojis end |
#format ⇒ TD::Types::StickerFormat
Format of the sticker.
12 13 14 |
# File 'lib/tdlib/types/input_sticker.rb', line 12 def format @format end |
#keywords ⇒ Array<TD::Types::String>
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.
12 13 14 |
# File 'lib/tdlib/types/input_sticker.rb', line 12 def keywords @keywords end |
#mask_position ⇒ TD::Types::MaskPosition
Position where the mask is placed; pass null if not specified.
12 13 14 |
# File 'lib/tdlib/types/input_sticker.rb', line 12 def mask_position @mask_position end |
#sticker ⇒ TD::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.
12 13 14 |
# File 'lib/tdlib/types/input_sticker.rb', line 12 def sticker @sticker end |