UNPKG

votcore

Version:

Vot Kit for Valensas Bots

22 lines (21 loc) 660 B
import { Conversation, GUID, Message, User } from './../models'; import { MessageChannelData, MessageType, Platform, VotChannels } from './../types'; export interface TextMessageConstructor { payload: string; platform: Platform; conversation: Conversation; user: User; type: MessageType; channel: keyof VotChannels; channelData?: MessageChannelData; date?: Date; id?: GUID; } /** * TextMessage class */ export declare class TextMessage extends Message { payloadType: 'text'; payload: string; constructor({payload, conversation, user, type, platform, channel, channelData, date, id}: TextMessageConstructor); }