The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/IMessage/MessageAttachment/Files/AudioAttachmentProps.ts

13 lines
470 B

import { MessageAttachmentBase } from '../MessageAttachmentBase';
import { FileAttachmentProps } from './FileAttachmentProps';
import { FileProp } from './FileProp';
export type AudioAttachmentProps = {
audio_url: string;
audio_type: string;
audio_size?: number;
file?: FileProp;
} & MessageAttachmentBase;
export const isFileAudioAttachment = (attachment: FileAttachmentProps): attachment is AudioAttachmentProps & { type: 'file' } =>
'audio_url' in attachment;