telegram.animation module¶
This module contains an object that represents a Telegram Animation.
-
class
telegram.animation.Animation(file_id, **kwargs)¶ Bases:
telegram.base.TelegramObjectThis 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: - data (dict) –
- bot (telegram.Bot) –
Returns: Return type:
-