telegram.animation module

This module contains an object that represents a Telegram Animation.

class telegram.animation.Animation(file_id, thumb=None, file_name=None, mime_type=None, file_size=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram Animation.

file_id

str – Unique file identifier.

Keyword Arguments:
 
  • thumb (Optional[telegram.PhotoSize]) – Animation thumbnail as defined by sender.
  • file_name (Optional[str]) – Original animation filename as defined by sender.
  • mime_type (Optional[str]) – MIME type of the file as defined by sender.
  • file_size (Optional[int]) – File size.
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.Game