peyk.platforms.telegram.types.input_media_sticker

Classes

InputMediaSticker(media[, type, emoji, ...])

Represents a sticker file to be sent.

class peyk.platforms.telegram.types.input_media_sticker.InputMediaSticker(media: object, type: str = 'sticker', emoji: str | None = None, mask_position: object | None = None)[source]

Bases: object

Represents a sticker file to be sent.

Variables:
  • type (str) – Type of the media, must be sticker

  • media (object) – File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a .WEBP sticker from the Internet, or pass ‘attach://’ to upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data under name. More information on Sending Files

  • emoji (str | None) – Emoji associated with the sticker; only for just uploaded stickers

media: object
type: str = 'sticker'
emoji: str | None = None
mask_position: object | None = None
to_dict(media_ref: str) Dict[str, object][source]

Provides the to dict operation for the Telegram integration.

Parameters:

media_ref – Value used by this operation.

Returns:

Result produced by the operation.