class Tourmaline::InputSticker

Overview

This object describes a sticker to be added to a sticker set.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(sticker : ::File | String, emoji_list : Array(String) = [] of String, mask_position : Tourmaline::MaskPosition | Nil = nil, keywords : Array(String) = [] of String) #

[View source]

Instance Method Detail

def emoji_list : Array(String) #

List of 1-20 emoji associated with the sticker


[View source]
def emoji_list=(emoji_list : Array(String)) #

List of 1-20 emoji associated with the sticker


[View source]
def keywords : Array(String) #

Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For "regular" and "custom_emoji" stickers only.


[View source]
def keywords=(keywords : Array(String)) #

Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For "regular" and "custom_emoji" stickers only.


[View source]
def mask_position : Tourmaline::MaskPosition | Nil #

Optional. Position where the mask should be placed on faces. For "mask" stickers only.


[View source]
def mask_position=(mask_position : Tourmaline::MaskPosition | Nil) #

Optional. Position where the mask should be placed on faces. For "mask" stickers only.


[View source]
def sticker : ::File | String #

The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, upload a new one using multipart/form-data, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files: https://core.telegram.org/bots/api#sending-files


[View source]
def sticker=(sticker : ::File | String) #

The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, upload a new one using multipart/form-data, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files: https://core.telegram.org/bots/api#sending-files


[View source]