node-groupme
Version:
The only GroupMe API library that isn't a million years old.
17 lines • 704 B
TypeScript
import type { APIChat } from 'groupme-api-types';
import type { Client, SendableChannelInterface, User } from '..';
import { Channel, ChannelType, ChatMessage, ChatMessageManager } from '..';
interface ChatInterface {
send(text: string): Promise<ChatMessage>;
}
export default class Chat extends Channel implements ChatInterface, SendableChannelInterface {
readonly type = ChannelType.Chat;
readonly recipient: User;
readonly messages: ChatMessageManager;
readonly conversationID: string;
constructor(client: Client, user: User, data: APIChat);
_patch(data: Partial<APIChat>): this;
send(text: string): Promise<ChatMessage>;
}
export {};
//# sourceMappingURL=Chat.d.ts.map