telegram-e2e-userbot
Skill59 starsChanged 16 days agoMITView on GitHub
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.
We split this skill into the rules it gives an agent
8 rules. 6 are common, 0 are distinctive, and 2 are very specific to this project.
6
Common
Most of the 9 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 24
Run from the OpenClaw checkout and ref under test, using its repository skill:
- Very specific: line 31
Verify node, uv, and a dependency-ready runtime for the exact ref before leasing a credential.
- Common: line 52
Check available launchers, existing authentication, and broker-project access before declaring credentials missing.
- Common: line 77
Read the verification map, then only the recipe for the behavior under test.
- Common: line 111
Create a durable proof directory outside runner scratch:
- Very specific: line 129
Start at the sent action in summary.json.
- Common: line 137
Keep credentials, identities, and private paths out of shared logs, screenshots, and reports.
- Common: line 145
Keep explicit proof directories until the review or reproduction no longer needs them.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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_DIRVerify 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 triesconvex, thenbunx --no-install convex, thennpx --offline --no --ignore-scripts convex. Each launcher gets one 15-secondenv --deployment <broker> getlookup for the CI secret. The helper uses the repository's existing broker binding; no localCONVEX_DEPLOYMENT, project-selection file, or dashboard lookup is needed. The secret stays in process memory. - Both
OPENCLAW_QA_CONVEX_SITE_URLandOPENCLAW_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.
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 9
- steipete/warelay★ 394k98% same
- moltbot/clawdbot★ 394k98% same
- moltbot/moltbot★ 394k98% same
- clawdbot/clawdbot★ 394k98% same
- steipete/clawdis★ 394k98% same
- openclaw/openclaw★ 394k98% same
- molt-bot/clawdbot★ 391k99% same
- friuns2/openclaw-android-assistant★ 57399% same
- OpenClawAndroid/openclaw-android-assistant★ 55699% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository107 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- extensions/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- ui/AGENTS.mdAGENTS.md
- agent-transcriptSkill
- auto-qaSkill
- autoreviewSkill
- channel-message-flowsSkill
- clawdtributorSkill
- claw-scoreSkill
- clawsweeperSkill
- control-ui-e2eSkill
- crabboxSkill
- discord-clawdSkill
- discord-e2eSkill
- discord-user-postSkill
- discrawlSkill
- gitcrawlSkill
- graincrawlSkill
- notcrawlSkill
- openclaw-changelog-updateSkill
- openclaw-ci-limitsSkill
- openclaw-debuggingSkill
- openclaw-docker-e2e-authoringSkill
- openclaw-ghsa-maintainerSkill
- openclaw-live-updaterSkill
- openclaw-parallels-smokeSkill
- openclaw-pr-maintainerSkill
- openclaw-qa-testingSkill
- openclaw-refactor-docsSkill
- openclaw-release-validationSkill
- openclaw-repair-sweepSkill
- openclaw-secret-scanning-maintainerSkill
- openclaw-test-heap-leaksSkill
- openclaw-testingSkill
- openclaw-test-performanceSkill
- openclaw-updateSkill
- parallels-discord-roundtripSkill
- plugin-sdk-impactSkill
- proof-videoSkill
- prototype-openclaw-tuiSkill
- pr-simplifySkill
- release-openclaw-announcementSkill
- release-openclaw-ciSkill
- release-openclaw-macSkill
- release-openclaw-maintainerSkill
- release-openclaw-plugin-testingSkill
- security-triageSkill
- slack-e2eSkill
- slacrawlSkill
- solidSkill
- tag-duplicate-prs-issuesSkill
- technical-documentationSkill
- test-auditSkill
- update-team-serverSkill
- verify-releaseSkill
- 1passwordSkill
- apple-notesSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

