A Media object is a comprehensive data structure that represents various types of media files, such as photos, audio files, voice recordings, videos, and documents. It typically includes metadata and attributes that describe and identify the media file.
Field
Type
Required
Description
id
String
Yes
Unique identifier for a media file.
width
Integer
Optional
Media file’s width.
height
Integer
Optional
Media file’s height.
size
Integer
Optional
Media file’s size.
duration
Integer
Optional
Duration of the media file, if it’s a Video, Audio or Voice note, in seconds.
performer
String
Optional
Performer of the Audio media according to the sender or audio tags.
name
Integer
Optional
Name of the media file if it’s Document as defined by the sender.
title
String
Optional
Title of the media file if it’s Audio, as defined by the sender or by audio tags.
thumbnail
Optional
Media file’s thumbnail.

Powered by Notaku
Share