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/VideoAttachmentProps.ts

13 lines
469 B

import { MessageAttachmentBase } from '../MessageAttachmentBase';
import { FileAttachmentProps } from './FileAttachmentProps';
import { FileProp } from './FileProp';
export type VideoAttachmentProps = {
video_url: string;
video_type: string;
video_size: number;
file?: FileProp;
} & MessageAttachmentBase;
export const isFileVideoAttachment = (attachment: FileAttachmentProps): attachment is VideoAttachmentProps & { type: 'file' } =>
'video_url' in attachment;