telegram.sticker module

This module contains an object that represents a Telegram Sticker.

class telegram.sticker.Sticker(file_id, width, height, thumb=None, emoji=None, file_size=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram Sticker.

file_id

str

width

int

height

int

thumb

telegram.PhotoSize

emoji

str

file_size

int

Parameters:
  • file_id (str) –
  • width (int) –
  • height (int) –
  • **kwargs – Arbitrary keyword arguments.
Keyword Arguments:
 
  • thumb (Optional[telegram.PhotoSize]) –
  • emoji (Optional[str]) –
  • file_size (Optional[int]) –
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.Sticker