You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
564 B
TypeScript
26 lines
564 B
TypeScript
5 years ago
|
import {
|
||
|
Quote,
|
||
|
AttachmentPointer,
|
||
|
Preview,
|
||
|
} from '../../ts/session/messages/outgoing';
|
||
|
|
||
|
declare class LokiAppDotNetServerAPI {
|
||
|
constructor(ourKey: string, url: string);
|
||
|
findOrCreateChannel(
|
||
|
api: LokiPublicChatFactoryAPI,
|
||
|
channelId: number,
|
||
|
conversationId: string
|
||
|
): Promise<LokiPublicChannelAPI>;
|
||
|
}
|
||
|
|
||
|
export interface LokiPublicChannelAPI {
|
||
|
sendMessage(data: {
|
||
|
quote?: Quote;
|
||
|
attachments: Array<AttachmentPointer>;
|
||
|
preview: Array<Preview>;
|
||
|
body?: string;
|
||
|
}): Promise<boolean>;
|
||
|
}
|
||
|
|
||
|
export default LokiAppDotNetServerAPI;
|