UNPKG

votcore

Version:

Vot Kit for Valensas Bots

25 lines (24 loc) 878 B
import { Card, Conversation, GUID, Message, User } from './../models'; import { MessageChannelData, MessageType, Platform, UrlPayload, VotChannels } from './../types'; export interface UrlMessageConstructor { payload: UrlPayload; platform: Platform; conversation: Conversation; user: User; type: MessageType; channel: keyof VotChannels; channelData?: MessageChannelData; date?: Date; id?: GUID; } /** * Message type that is used to send Links to users * If the chat channel client doesn't support hyperlinks or doesn't add title and description automatically * this falls back to card messages. */ export declare class UrlMessage extends Message { payloadType: 'url'; payload: UrlPayload; constructor({payload, conversation, type, user, platform, channel, channelData, date, id}: UrlMessageConstructor); toCard(): Card; }