Merge pull request #1428 from bestparents/feat/mattermost-channel

feat: add Mattermost channel support
This commit is contained in:
Peter Steinberger
2026-01-23 00:24:47 +00:00
committed by GitHub
63 changed files with 2746 additions and 32 deletions

View File

@@ -28,11 +28,18 @@ type SendMatrixMessage = (
opts?: { mediaUrl?: string; replyToId?: string; threadId?: string; timeoutMs?: number },
) => Promise<{ messageId: string; roomId: string }>;
type SendMattermostMessage = (
to: string,
text: string,
opts?: { accountId?: string; mediaUrl?: string; replyToId?: string },
) => Promise<{ messageId: string; channelId: string }>;
export type OutboundSendDeps = {
sendWhatsApp?: typeof sendMessageWhatsApp;
sendTelegram?: typeof sendMessageTelegram;
sendDiscord?: typeof sendMessageDiscord;
sendSlack?: typeof sendMessageSlack;
sendMattermost?: SendMattermostMessage;
sendSignal?: typeof sendMessageSignal;
sendIMessage?: typeof sendMessageIMessage;
sendMatrix?: SendMatrixMessage;