Skip to content

Interface: Audio

音频文件对象。

Hierarchy

Properties

duration

duration: number

音频时长(单位:秒)。

Defined in

src/typings/message.ts:154


file_id

file_id: string

文件标识。

可用于下载、重用文件。

Inherited from

Attachment.file_id

Defined in

src/typings/message.ts:136


file_size

Optional file_size: number

文件大小

Inherited from

Attachment.file_size

Defined in

src/typings/message.ts:146


file_unique_id

file_unique_id: string

文件唯一 ID。

不受时间、获取人的影响。不可用于下载、重用文件。

Inherited from

Attachment.file_unique_id

Defined in

src/typings/message.ts:142


mime_type

Optional mime_type: string

文件的MIME 类型

Inherited from

Attachment.mime_type

Defined in

src/typings/message.ts:144


performer

Optional performer: string

音频制作人。

Defined in

src/typings/message.ts:156


thumb

Optional thumb: unknown

封面。

Inherited from

Attachment.thumb

Defined in

src/typings/message.ts:148


title

Optional title: string

标题。

Defined in

src/typings/message.ts:158

Released under the MIT License.