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

22 lines
616 B

// DEPRECATED
import { MessageAttachmentBase } from './MessageAttachmentBase';
type Action = {
msgId?: string;
type: 'button';
text: string;
msg?: string;
url?: string;
image_url?: string;
is_webview?: true;
msg_in_chat_window?: true;
msg_processing_type?: 'sendMessage' | 'respondWithMessage' | 'respondWithQuotedMessage';
};
export type MessageAttachmentAction = {
button_alignment?: 'horizontal' | 'vertical';
actions: Array<Action>;
} & MessageAttachmentBase;
export const isActionAttachment = (attachment: MessageAttachmentBase): attachment is MessageAttachmentAction => 'actions' in attachment;