Skip to content

[Bug]: Telegram plugin fails to load after refactor: Cannot find module '../../../src/infra/outbound/deliver.js' #47021

@munyua-arch

Description

@munyua-arch

Bug type

Behavior bug (incorrect output/state without crash)

Summary

After cloning the repo and building the Docker image locally, the Telegram plugin fails to load on every gateway start with the following error:
[plugins] telegram failed to load from /app/extensions/telegram/index.ts: Error: Cannot find module '../../../src/infra/outbound/deliver.js'
Require stack:

  • /app/extensions/telegram/src/channel.ts
    The file src/infra/outbound/deliver.js is referenced in /app/extensions/telegram/src/channel.ts at line 46:
    typescript} from "../../../src/infra/outbound/deliver.js";
    However, this file is never compiled into the dist/ output. Running find /app/dist -name "deliver.js" returns nothing. Running find /app/src/infra/outbound -type f returns No such file or directory.

Steps to reproduce

  1. Clone the repo: git clone https://github.com/openclaw/openclaw.git
  2. Build the Docker image: docker build --no-cache -t openclaw:local -f Dockerfile .
  3. Run docker-setup.sh and complete onboarding with Telegram enabled
  4. Start the gateway: docker compose up -d
  5. Check logs: docker compose logs openclaw-gateway

Expected behavior

Telegram plugin loads successfully and the bot responds to messages.

Actual behavior

Telegram plugin fails to load on every restart. The bot does not respond to any messages.

OpenClaw version

2026.3.14

Operating system

Ubuntu 24

Install method

docker

Model

arcee-ai/trinity-large-preview:free

Provider / routing chain

OpenRouter (free tier) → arcee-ai/trinity-large-preview:free

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions