Automatic audio duration fetch

This commit is contained in:
Adhiraj Singh
2020-10-22 20:23:35 +05:30
parent ea91c807f4
commit a72ed7272d
6 changed files with 195 additions and 8 deletions

View File

@@ -333,6 +333,8 @@ export interface MessageOptions {
uploadAgent?: Agent
/** If set to true (default), automatically detects if you're sending a link & attaches the preview*/
detectLinks?: boolean
/** Optionally specify the duration of the media (audio/video) in seconds */
duration?: number
/** Fetches new media options for every media file */
forceNewMediaOptions?: boolean
}