Skip to content

Interface: Voice

语音消息对象。

Hierarchy

Properties

duration

duration: number

语音时间(单位:秒)。

Defined in

src/typings/message.ts:188


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


thumb

Optional thumb: unknown

封面。

Inherited from

Attachment.thumb

Defined in

src/typings/message.ts:148

Released under the MIT License.