peyk.platforms.telegram.types.input_sticker

Classes

InputSticker(sticker, format, emoji_list[, ...])

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

class peyk.platforms.telegram.types.input_sticker.InputSticker(sticker: object, format: str, emoji_list: List[str], mask_position: MaskPosition | None = None, keywords: List[str] | None = None)[source]

Bases: object

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

Variables:
  • sticker (object) – 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, or pass ‘attach://’ to upload a new file using multipart/form-data under name. Animated and video stickers can’t be uploaded via HTTP URL. More information on Sending Files

  • format (str) – Format of the added sticker, must be one of ‘static’ for a .WEBP or .PNG image, ‘animated’ for a .TGS animation, ‘video’ for a .WEBM video

  • emoji_list (List[str]) – List of 1-20 emoji associated with the sticker

  • mask_position (peyk.platforms.telegram.types.mask_position.MaskPosition | None) – Position where the mask should be placed on faces. For ‘mask’ stickers only.

  • keywords (List[str] | None) – List of 0-20 search keywords for the sticker with total length of up to 64 characters. For ‘regular’ and ‘custom_emoji’ stickers only.

sticker: object
format: str
emoji_list: List[str]
mask_position: MaskPosition | None = None
keywords: List[str] | None = None
to_dict(sticker_ref: str) Dict[str, object][source]

Provides the to dict operation for the Telegram integration.

Parameters:

sticker_ref – Value used by this operation.

Returns:

Result produced by the operation.