<!-- source: https://deepwiki.com/openclaw/openclaw/4.2-platform-integrations -->

# Platform Integrations

- .agents/maintainer-notes/telegram.md
- docs/channels/telegram.md
- extensions/browser/src/browser/cdp.helpers.fuzz.test.ts
- extensions/browser/src/browser/chrome.executables.ts
- extensions/browser/src/browser/chrome.version.test.ts
- extensions/browser/src/browser/client-fetch.loopback-auth.test.ts
- extensions/browser/src/browser/client-fetch.ts
- extensions/browser/src/browser/profiles.test.ts
- extensions/browser/src/browser/profiles.ts
- extensions/discord/src/monitor/typing.test.ts
- extensions/google-meet/index.test.ts
- extensions/google-meet/index.ts
- extensions/google-meet/src/cli.test.ts
- extensions/google-meet/src/cli.ts
- extensions/google-meet/src/config.test.ts
- extensions/google-meet/src/config.ts
- extensions/imessage/src/monitor.watch-subscribe-retry.test.ts
- extensions/line/src/rich-menu.test.ts
- extensions/llm-task/index.ts
- extensions/llm-task/openclaw.plugin.json
- extensions/llm-task/src/llm-task-tool.test.ts
- extensions/llm-task/src/llm-task-tool.ts
- extensions/matrix/src/matrix/draft-stream.test.ts
- extensions/matrix/src/matrix/draft-stream.ts
- extensions/matrix/src/matrix/format.test.ts
- extensions/matrix/src/matrix/format.ts
- extensions/matrix/src/matrix/monitor/handler.group-history.test.ts
- extensions/matrix/src/matrix/monitor/handler.test.ts
- extensions/matrix/src/matrix/monitor/handler.thread-root-media.test.ts
- extensions/matrix/src/matrix/monitor/handler.ts
- extensions/matrix/src/matrix/sdk.test.ts
- extensions/matrix/src/matrix/sdk.ts
- extensions/matrix/src/matrix/send.test.ts
- extensions/matrix/src/matrix/send.ts
- extensions/memory-core/src/concept-vocabulary.ts
- extensions/nextcloud-talk/src/inbound.ts
- extensions/qqbot/src/engine/utils/audio.ts
- extensions/slack/src/directory-contract.test.ts
- extensions/slack/src/doctor.test.ts
- extensions/slack/src/draft-stream.ts
- extensions/slack/src/http/plugin-routes.test.ts
- extensions/slack/src/monitor/context.ts
- extensions/slack/src/monitor/dm-auth.test.ts
- extensions/slack/src/monitor/dm-auth.ts
- extensions/slack/src/monitor/events/assistant.test.ts
- extensions/slack/src/monitor/events/assistant.ts
- extensions/slack/src/monitor/events/messages.test.ts
- extensions/slack/src/monitor/events/messages.ts
- extensions/slack/src/monitor/message-handler/dispatch.preview-fallback.test.ts
- extensions/slack/src/monitor/message-handler/dispatch.ts
- extensions/slack/src/monitor/message-handler/prepare-routing.ts
- extensions/slack/src/monitor/message-handler/prepare.test.ts
- extensions/slack/src/monitor/message-handler/prepare.thread-session-key.test.ts
- extensions/slack/src/monitor/message-handler/prepare.ts
- extensions/slack/src/monitor/message-handler/subteam-mentions.test.ts
- extensions/slack/src/monitor/message-handler/subteam-mentions.ts
- extensions/slack/src/monitor/message-handler/types.ts
- extensions/slack/src/monitor/provider.ts
- extensions/slack/src/monitor/replies.test.ts
- extensions/slack/src/monitor/replies.ts
- extensions/slack/src/monitor/slash.ts
- extensions/telegram/src/action-runtime.test.ts
- extensions/telegram/src/action-runtime.ts
- extensions/telegram/src/bot-core.raw-update-log.test.ts
- extensions/telegram/src/bot-core.ts
- extensions/telegram/src/bot-deps.ts
- extensions/telegram/src/bot-message-dispatch.test.ts
- extensions/telegram/src/bot-message-dispatch.ts
- extensions/telegram/src/bot/delivery.replies.ts
- extensions/telegram/src/bot/delivery.test.ts
- extensions/telegram/src/config-schema.test.ts
- extensions/telegram/src/lane-delivery-text-deliverer.ts
- extensions/telegram/src/lane-delivery.ts
- extensions/telegram/src/native-tool-progress-draft.test.ts
- extensions/telegram/src/native-tool-progress-draft.ts
- extensions/telegram/src/polling-liveness.test.ts
- extensions/telegram/src/polling-liveness.ts
- extensions/telegram/src/polling-session.test.ts
- extensions/telegram/src/polling-session.ts
- extensions/telegram/src/polling-status.ts
- extensions/telegram/src/raw-update-log.ts
- extensions/telegram/src/request-timeouts.test.ts
- extensions/telegram/src/request-timeouts.ts
- extensions/telegram/src/send.test.ts
- extensions/telegram/src/send.ts
- extensions/telegram/src/sequential-key.test.ts
- extensions/telegram/src/sequential-key.ts
- extensions/telegram/src/status-issues.ts
- extensions/telegram/src/status.test.ts
- extensions/telegram/src/telegram-ingress-spool.test.ts
- extensions/telegram/src/telegram-ingress-spool.ts
- extensions/telegram/src/telegram-ingress-worker.runtime.ts
- extensions/telegram/src/telegram-ingress-worker.ts
- extensions/telegram/src/telegram-reply-fence.test.ts
- extensions/telegram/src/telegram-reply-fence.ts
- extensions/tlon/src/security.test.ts
- src/agents/main-session-restart-recovery.test.ts
- src/agents/main-session-restart-recovery.ts
- src/auto-reply/reply/before-deliver.test.ts
- src/auto-reply/reply/normalize-reply.ts
- src/config/types.base.ts
- src/config/types.telegram.ts
- src/infra/install-package-dir.test.ts
- src/infra/install-package-dir.ts
- src/infra/package-update-steps.test.ts
- src/infra/package-update-steps.ts
- src/plugin-sdk/browser-cdp.ts
- src/plugin-sdk/browser-subpaths.test.ts
- ui/src/ui/views/overview-log-tail.ts

This page documents the specific implementations for each messaging and conferencing platform that OpenClaw supports. Each integration uses platform-native libraries and follows specific patterns for authentication, message normalization, and real-time interaction.

## Messaging Platforms

OpenClaw integrates with multiple messaging platforms through dedicated provider implementations. Each platform has unique characteristics, authentication flows, and capabilities that are abstracted into a common message processing pipeline.

### Platform Overview Table

Sources: [docs/channels/telegram.md8](https://github.com/openclaw/openclaw/blob/fbdf5937/docs/channels/telegram.md?plain=1#L8-L8) [extensions/telegram/src/bot-message-dispatch.ts2](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/bot-message-dispatch.ts#L2-L2) [extensions/slack/src/monitor/message-handler/dispatch.ts1-3](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/slack/src/monitor/message-handler/dispatch.ts#L1-L3) [extensions/matrix/src/matrix/monitor/handler.ts1-20](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/matrix/src/matrix/monitor/handler.ts#L1-L20)

## Telegram Integration (grammY)

OpenClaw integrates with Telegram via the `grammY` library [extensions/telegram/src/bot-message-dispatch.ts2](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/bot-message-dispatch.ts#L2-L2) The implementation focuses on handling the complexities of the Telegram Bot API, including media groups, message fragments, and sequential execution.

### Update Pipeline and Message Processing

- Sequentialization: Telegram updates are processed sequentially per chat/thread via a middleware pipeline using getTelegramSequentialKey to avoid concurrent command or message handling conflicts extensions/telegram/src/bot-message-dispatch.ts 128
- Throttling: The throttler middleware is applied to respect Telegram's API rate limits extensions/telegram/src/bot-message-dispatch.test.ts 173-183
- Polling Management: TelegramPollingSession handles the lifecycle of the grammY runner, including webhook cleanup and stall detection extensions/telegram/src/polling-session.ts 51-62
- Isolated Ingress: An isolatedIngress mode allows offloading update fetching to a separate worker process extensions/telegram/src/polling-session.ts 181-192
- Reply Fencing: The system uses beginTelegramReplyFence and endTelegramReplyFence to manage message delivery order and prevent race conditions during streaming extensions/telegram/src/bot-message-dispatch.ts 131-142
- Inbound Spooling: For high-volume or isolated setups, updates can be spooled to disk via writeTelegramSpooledUpdate and claimed by workers extensions/telegram/src/polling-session.ts 30-41

### Telegram Code Entity Mapping

```

```

Sources: [extensions/telegram/src/bot-message-dispatch.ts113-142](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/bot-message-dispatch.ts#L113-L142) [extensions/telegram/src/polling-session.ts42-50](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/polling-session.ts#L42-L50) [extensions/telegram/src/bot-message-dispatch.test.ts173-183](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/bot-message-dispatch.test.ts#L173-L183) [extensions/telegram/src/polling-session.ts30-41](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/polling-session.ts#L30-L41)

## Slack Integration (Bolt)

The Slack integration uses the `@slack/bolt` framework to handle events and interact with the Slack API.

- Transport Modes: Supports Socket Mode (WebSocket) for local deployments and HTTP Mode for cloud deployments extensions/slack/src/monitor/message-handler/dispatch.ts 71-80
- Message Normalization: prepareSlackMessage normalizes Slack-specific events into a standard OpenClaw inbound format extensions/slack/src/monitor/message-handler/prepare.ts 25
- Assistant Threads: Supports Slack's native Assistant View via resolveSlackMessageAssistantThreadContext extensions/slack/src/monitor/message-handler/prepare.test.ts 206-216
- Streaming & Progress: Implements rich progress blocks for Slack via buildSlackProgressDraftBlocks and startSlackStream extensions/slack/src/monitor/message-handler/dispatch.ts 65-79
- Thread Participation: Tracks participation in threads via recordSlackThreadParticipation to maintain context during asynchronous replies extensions/slack/src/monitor/message-handler/dispatch.ts 70

Sources: [extensions/slack/src/monitor/message-handler/dispatch.ts65-80](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/slack/src/monitor/message-handler/dispatch.ts#L65-L80) [extensions/slack/src/monitor/message-handler/prepare.test.ts206-216](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/slack/src/monitor/message-handler/prepare.test.ts#L206-L216)

## Matrix Integration

The Matrix integration handles end-to-end encrypted or plain text messaging via the Matrix protocol.

- Event Handling: createMatrixRoomMessageHandler processes incoming m.room.message and m.reaction events extensions/matrix/src/matrix/monitor/handler.ts 12-20
- State Management: Uses registerSessionBindingAdapter to link Matrix room/thread IDs to OpenClaw session keys extensions/matrix/src/matrix/monitor/handler.test.ts 5-8
- Rich Replies: Supports Matrix notices ( m.notice ) and formatted HTML body parts extensions/matrix/src/matrix/monitor/handler.test.ts 194-198

Sources: [extensions/matrix/src/matrix/monitor/handler.ts12-20](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/matrix/src/matrix/monitor/handler.ts#L12-L20) [extensions/matrix/src/matrix/monitor/handler.test.ts5-8](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/matrix/src/matrix/monitor/handler.test.ts#L5-L8)

## Voice & Conferencing Integrations

OpenClaw supports real-time voice interaction through video conferencing (Google Meet) and telephony.

### Google Meet Integration

The Google Meet plugin allows agents to join meetings and interact via audio/video.

- CLI Interface: Provides a google-meet CLI for joining meetings directly from the terminal extensions/google-meet/src/cli.ts 1-20
- Configuration: Managed via GoogleMeetConfig including OAuth credentials and meeting preferences extensions/google-meet/src/config.ts 1-15
- Audio Bridge: Uses a real-time audio bridge to connect meeting audio to the agent runtime extensions/google-meet/index.ts 1-10

### Voice & Video Code Entity Mapping

```

```

Sources: [extensions/google-meet/src/cli.ts1-10](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/google-meet/src/cli.ts#L1-L10) [extensions/telegram/src/bot-message-dispatch.ts104](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/bot-message-dispatch.ts#L104-L104) [extensions/slack/src/monitor/message-handler/dispatch.ts77](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/slack/src/monitor/message-handler/dispatch.ts#L77-L77)

## Summary of Integration Features

Sources: [extensions/telegram/src/bot-message-dispatch.ts104-128](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/telegram/src/bot-message-dispatch.ts#L104-L128) [extensions/slack/src/monitor/message-handler/dispatch.ts65-77](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/slack/src/monitor/message-handler/dispatch.ts#L65-L77) [extensions/matrix/src/matrix/monitor/handler.test.ts5-61](https://github.com/openclaw/openclaw/blob/fbdf5937/extensions/matrix/src/matrix/monitor/handler.test.ts#L5-L61)
