telegram.audio module

This module contains an object that represents a Telegram Audio.

class telegram.audio.Audio(file_id, duration, performer=None, title=None, mime_type=None, file_size=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram Audio.

file_id

str

duration

int

performer

str

title

str

mime_type

str

file_size

int

Parameters:
  • file_id (str) –
  • duration (int) –
  • performer (Optional[str]) –
  • title (Optional[str]) –
  • mime_type (Optional[str]) –
  • file_size (Optional[int]) –
  • **kwargs – Arbitrary keyword arguments.
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.Audio