Skip to content
cccskills
FreePublished on GitHubEnglish overview

telegram-e2e-userbot

Test OpenClaw on Telegram's Test Server through a real user account. Record replies, edits, deletions, reactions, and typing to verify user-visible behavior, with actual Telegram client screenshots required when checking visual results.

OriginalShow the original description

Prove user-visible OpenClaw Telegram behavior on Telegram's Test Server with Convex-leased team credentials; drive real-user turns and record messages, edits, deletions, reactions, typing, or rich content.

Works withTelegram
AI rating90/ 100See how to install

Good for

  • Verifying replies and commands in direct messages
  • Testing group mentions, topics, and reactions
  • Tracking message edits, deletions, and typing
  • Checking visual results with Telegram client screenshots

Overview

What it does

Test OpenClaw on Telegram's Test Server using a real user account to check behavior that users can see. TDLib records message edits, deletions, reactions, and typing indicators. Events after the action you sent provide evidence for the check. The runner scripts handle temporary credential borrowing, test environment startup, recording, and cleanup.

When it helps

This skill is for developers and QA staff checking direct-message replies and commands, group mentions, topics, and reactions. It also helps when you need to verify formatting, media, timing, or individual message changes beyond whether a reply arrives.

Example requests

  • “Send the specified message in a direct chat and record the response timeline.”
  • “Check reactions in the group and report the events that support the result.”

Notes

You need the target OpenClaw environment, node, uv, prepared dependencies, and Convex credentials. Full scenarios also require local networking and unused ports. Use actual Telegram client screenshots for visual checks. Keep credentials out of shared records, and confirm that processes stop and credentials are returned when the run ends.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Objective evaluation

AI rated this skill on four points using only the contents of its SKILL.md. Stars and popularity are not taken into account.

Clear instructionsIs it clear when to use it and what it does?
AGoodIt explicitly describes recording real-user actions on Telegram's Test Server to verify user-visible behavior.
Concrete stepsAre steps, inputs, outputs, and examples spelled out?
AGoodIt specifies preparation, proof selection, execution, judgment, cleanup, and the events.ndjson and summary.json outputs.
SafetyAre sending data, deleting files, and running commands disclosed?
AGoodIt defines credential leasing scope, exclusion from shared records, and checks for process shutdown and lease release.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingIt requires node, uv, and prepared dependencies but does not provide dependency installation steps.

The total counts each point as A = 25, B = 15, C = 5. Rated by AI (OpenAI Codex) as of Oct 19, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (53)

  • SKILL.md7.3 KB
  • agents/openai.yaml351 B
  • features/basic-turns.md2.8 KB
  • features/delivery-lifecycle.md2.4 KB
  • features/private-yield-reply-policy.md4.8 KB
  • features/reaction-lifecycle.md2.4 KB
  • features/README.md9.5 KB
  • features/restart-attribution.md3.7 KB
  • features/runtime-reference.md23.5 KB
  • scripts/followup-drain-control-preload.mjs2.6 KB
  • scripts/followup-drain-control-preload.test.mjs3.0 KB
  • scripts/node-test-children.mjs2.0 KB
  • scripts/published-upgrade-artifact.mjs5.5 KB
  • scripts/published-upgrade-scenario.mjs17.3 KB
  • scripts/qa-credential-lease.mjs11.8 KB
  • scripts/qa-credential-lease.test.mjs25.9 KB
  • scripts/reply-policy-checkpoint.mjs5.8 KB
  • scripts/reply-policy-mock.mjs8.4 KB
  • scripts/run-mock-sut-user-e2e.mjs58.1 KB
  • scripts/run-mock-sut-user-e2e.test.mjs24.2 KB
  • scripts/run-published-upgrade-user-e2e.mjs12.0 KB
  • scripts/run-published-upgrade-user-e2e.test.mjs9.7 KB
  • scripts/run-reply-policy-user-e2e.mjs14.8 KB
  • scripts/scenario.mjs12.0 KB
  • scripts/scenario.test.mjs8.9 KB
  • scripts/telegram-api-ignore-abort-preload.mjs511 B
  • scripts/telegram-api-ignore-abort-preload.test.mjs1008 B
  • scripts/telegram-binding-checkpoint.mjs21.2 KB
  • scripts/telegram-binding-checkpoint.test.mjs10.2 KB
  • scripts/telegram-binding-forum.py18.9 KB
  • scripts/telegram-binding-upgrade-verdict.mjs16.3 KB
  • scripts/telegram-run-composition.test.mjs27.7 KB
  • scripts/telegram-run-scope.mjs9.3 KB
  • scripts/telegram-runtime.mjs3.9 KB
  • scripts/telegram-runtime.test.mjs6.5 KB
  • scripts/telegram-test-api-proxy.mjs19.3 KB
  • scripts/telegram-test-api-proxy.test.mjs24.3 KB
  • scripts/telegram-test-credential.mjs9.6 KB
  • scripts/telegram-test-credential.test.mjs13.4 KB
  • scripts/telegram-test-doctor.mjs11.5 KB
  • scripts/telegram-test-doctor.test.mjs5.3 KB
  • scripts/telegram-test-group.mjs4.5 KB
  • scripts/telegram-test-group.test.mjs2.1 KB
  • scripts/telegram-test-recover.mjs6.4 KB
  • scripts/telegram-test-recover.test.mjs12.0 KB
  • scripts/telegram-test-scenario.test.mjs34.7 KB
  • scripts/triage-mock-openai.mjs13.5 KB
  • scripts/triage-mock-openai.test.mjs5.2 KB
  • scripts/user-driver.py82.1 KB
  • scripts/user-driver.test.py61.0 KB
  • scripts/user-proof-ownership.test.py6.1 KB
  • scripts/user-record.py32.1 KB
  • scripts/user-record.test.py28.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Telegram E2E (Userbot)

Prove the requested behavior as a dedicated Telegram Test Server user. TDLib records edits, deletions, reactions, and typing that a second bot cannot observe. For visual claims, also inspect actual Telegram client screenshots; a reconstructed chat image or event log is not visual proof.

Each Convex credential contains one SUT bot and an independent authorization for the QA user. The runner owns that lease through readiness, proof, and cleanup. Pool creation, account authorization repair, and credential publication remain owner-only. Reversible test-chat setup with the leased QA user is ordinary proof work; preserve shared fixtures and other runs.

1. Prepare

Run from the OpenClaw checkout and ref under test, using its repository skill:

TELEGRAM_E2E_SKILL_DIR="${TELEGRAM_E2E_SKILL_DIR:-$PWD/.agents/skills/telegram-e2e-userbot}"
export TELEGRAM_E2E_SKILL_DIR

Verify node, uv, and a dependency-ready runtime for the exact ref before leasing a credential. The runner uses built dist/entry.js; --source-gateway uses the repository's development launcher when a dependency-ready source run is appropriate. It runs core and the Telegram plugin from TypeScript source; other plugins, including the model provider, use built output when it exists, so rebuild before claiming their changes. The live run must not implicitly install or build. Only the mock backend needs scripts/e2e/mock-openai-server.mjs.

Convex access can come from either:

  • An existing authenticated CLI with access to the published broker deployment. From qa/convex-credential-broker, discovery tries convex, then bunx --no-install convex, then npx --offline --no --ignore-scripts convex. Each launcher gets one 15-second env --deployment <broker> get lookup for the CI secret. The helper uses the repository's existing broker binding; no local CONVEX_DEPLOYMENT, project-selection file, or dashboard lookup is needed. The secret stays in process memory.
  • Both OPENCLAW_QA_CONVEX_SITE_URL and OPENCLAW_QA_CONVEX_SECRET_CI, supplied privately to the doctor or runner process by the existing credential owner.

Check available launchers, existing authentication, and broker-project access before declaring credentials missing. An authenticated launcher with no CI variable needs broker configuration, not another login. Ask the user for authentication only when no existing launcher can authenticate and the broker pair is unavailable. Do not install or log in on the user's behalf. A timeout or network failure is not evidence that credentials are missing. Bun's --no-install missing-binary error means that launcher is unavailable; discovery continues to the next installed launcher.

The standalone doctor needs no local HTTP listener, Gateway build, or model backend: it checks the leased TDLib user and calls Telegram’s official Test Bot API directly over HTTPS. The full scenario still needs local networking for its Gateway and Test Bot API adapter (including hold/reject controls), plus the mock provider when selected. A passing doctor does not qualify those local services.

For a full scenario on shared hosts, select two unused ports and pass them explicitly; the runner does not read port environment variables:

: "${TELEGRAM_GATEWAY_PORT:?set an unused Gateway port}"
: "${TELEGRAM_MOCK_PORT:?set an unused provider port}"

2. Select the proof

Read the verification map, then only the recipe for the behavior under test. Prefer a DM; use groups for group policy, mentions, commands, topics, or reactions. For a topic proof without a prepared forum, --create-forum gives the scenario a run-owned forum topic that cleanup deletes. A generic success turn does not prove formatting, media, timing, or lifecycle behavior.

Extend the harness when its current actions or recorder fields cannot expose the claim. Scenario command actions can inspect the leased TDLib state, private credential file, Test Bot API proxy, and Gateway state. Use the runtime reference for timed scenarios, forums, photo/reply actions, non-default backends, manual operation, or failed-run recovery.

3. Check readiness and run

The scenario checks its actual user, bot, transport, and selected chat on its own lease before starting the Gateway. DMs do not depend on unrelated groups. Group runs verify bot membership, privacy, and tester text permissions, preserving a suitable selected group or preparing a run-owned one when needed. Readiness from a released lease never qualifies a later run.

For a standalone diagnostic, use:

node "$TELEGRAM_E2E_SKILL_DIR/scripts/telegram-test-doctor.mjs"

Require ok: true, botApiTransport: "direct-https", and botApiProxy: false. The doctor defaults to DM readiness; --chat <target> checks a selected group through the same direct Test Bot API route. It releases its diagnostic lease and does not start product proof. Preserve setup failures and repair their cause before trying again; rotating unchanged credentials to hunt for a pass is not a repair.

Create a durable proof directory outside runner scratch:

TELEGRAM_E2E_PROOF_DIR="$(mktemp -d /tmp/telegram-e2e-proof.XXXXXX)"
node "$TELEGRAM_E2E_SKILL_DIR/scripts/run-mock-sut-user-e2e.mjs" \
  --gateway-port "$TELEGRAM_GATEWAY_PORT" --mock-port "$TELEGRAM_MOCK_PORT" \
  --dm --text 'Please answer with OPENCLAW_E2E_OK only.' \
  --record "$TELEGRAM_E2E_PROOF_DIR/events.ndjson" \
  --output "$TELEGRAM_E2E_PROOF_DIR/summary.json"

The runner owns the lease, proxy, fresh Gateway, provider, user actions, recorder, and teardown. Recording captures facts and rejects probe assertions such as --expect and --any-sut-reply. A send-confirmation timeout can follow an accepted send: preserve observed events and reconcile them, rather than blindly resending.

4. Judge and clean up

Start at the sent action in summary.json; judge only later events from the selected SUT. Use raw TDLib messageId within the same user's chat, not another account's Bot API receipt, to connect edits and deletions. Require a provider request when the path should reach the model; native commands may produce none.

Report the sanitized command, sent action, relevant timeline rows, provider request count, and the claim those facts prove. Inspect test-group.json or the summary's testForum when setup ran; fixture evidence is not message proof. Keep credentials, identities, and private paths out of shared logs, screenshots, and reports.

Completion requires the claimed Telegram evidence, no runner-owned processes or listeners, released lease, removed credential scratch, and readable proof files. Cancellation or lease loss stops new work and joins owned consumers. Unconfirmed cleanup is a failure: preserve the private recovery state and use the runtime recovery instructions. Keep explicit proof directories until the review or reproduction no longer needs them.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

1password

FreeSummaryAI rating 100

Set up and authenticate the 1Password CLI, then supply stored passwords and API keys to commands or configuration. The skill covers desktop integration, service accounts, and interactive sign-in while keeping secrets out of chat and logs.

  • Setting up the 1Password CLI
  • Supplying API keys to commands
  • Using service account authentication in CI
openclaw/openclaw392.4KUpdated Oct 18, 2026

acp-router

FreeSummaryAI rating 80

Route requests from OpenClaw to external coding agents such as Claude Code or Cursor. Start or continue sessions using ACP, a protocol for connecting agents, or relay prompts directly through acpx while preserving conversation context.

  • Starting a Claude Code session in a thread
  • Continuing work with an external coding agent
  • Relaying prompts directly through acpx
openclaw/openclaw392.4KUpdated Oct 18, 2026

add-model-provider

FreeSummaryAI rating 100

Add a model provider to OpenClaw and verify it with a real response. The skill validates configuration, keeps credentials in environment or file references, and reports test results and any default model changes.

  • Adding a model provider to OpenClaw
  • Configuring credentials through environment or file references
  • Checking whether a model returns a real response
openclaw/openclaw392.4KUpdated Oct 18, 2026

agent-transcript

FreeSummaryAI rating 90

Prepare an agent activity transcript for a GitHub pull request or issue. Extract relevant prompts, decisions, and results from local logs, remove sensitive material, and preview the edited record before separately authorized publication.

  • Preparing an agent activity record for a pull request
  • Extracting task-relevant prompts and results from local logs
  • Previewing a transcript with sensitive information removed
openclaw/openclaw392.4KUpdated Oct 18, 2026

apple-notes

FreeSummaryAI rating 100

Manage Apple Notes on macOS through memo, a command-line tool. Create, browse, search, edit, delete, and move notes between folders, or export selected notes to HTML or Markdown for use outside the app.

  • Creating notes with titles
  • Finding notes by folder or approximate search
  • Editing notes and organizing them into folders
openclaw/openclaw392.4KUpdated Oct 18, 2026

apple-reminders

FreeSummaryAI rating 70

Manage Apple Reminders from your Mac with remindctl, a terminal tool. View tasks by date, add or edit reminders, organize lists, and mark tasks complete or delete them, including personal to-dos that sync to iOS.

  • Review today’s tasks and overdue reminders
  • Add personal to-dos with due dates
  • Organize tasks visible on an iPhone or iPad
openclaw/openclaw392.4KUpdated Oct 18, 2026

See all skills by openclaw

Report a problem with this skill