本文へ移動
cccskills
無料GitHub で公開日本語紹介

telegram-e2e-userbot

Telegramのテスト環境で実ユーザーとしてOpenClawを操作し、応答や編集・削除・リアクションなどを記録して、利用者に見える動作を検証するスキル。

原文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.

インストール方法を見る

こんなときに便利

  • DMの応答やコマンドを検証したいとき
  • グループのメンションやトピックの検証
  • 編集・削除・入力中表示の動作確認
  • 実画面で表示結果を確かめたいとき

日本語での紹介

できること

TelegramのTest Serverで、実ユーザーのアカウントからOpenClawを操作し、利用者に見える動作を検証します。TDLibでメッセージの編集・削除・リアクション・入力中表示を記録し、送信した操作以降の出来事を証拠として確認します。実行用スクリプトは認証情報の一時借用から、テスト環境の起動、記録、後片付けまで扱います。

こんなときに便利

DMの応答やコマンド、グループでのメンション、トピック、リアクションを確かめたい開発・QA担当者向けです。単に応答が返るかだけでなく、書式、メディア、タイミングやメッセージの変化を個別に検証する場面に適しています。

使い方の例

  • 「DMで指定したメッセージを送り、応答の時系列を記録してください」
  • 「グループ内のリアクションを検証し、根拠となるイベントを報告してください」

注意点

対象のOpenClaw環境、node、uv、準備済みの依存関係とConvexの認証情報が必要です。フルシナリオにはローカル通信と未使用ポートも必要です。見た目の検証には実際のTelegramクライアントのスクリーンショットを使います。認証情報を共有記録に含めず、終了時はプロセス停止と認証情報の返却まで確認します。

この紹介文は、公開されている SKILL.md をもとに AI(Claude Haiku)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(52)

  • 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.md22.8 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.mjs15.2 KB
  • scripts/telegram-test-api-proxy.test.mjs17.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.mjs3.4 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.mjs32.4 KB
  • scripts/triage-mock-openai.mjs13.5 KB
  • scripts/triage-mock-openai.test.mjs5.2 KB
  • scripts/user-driver.py79.0 KB
  • scripts/user-driver.test.py56.3 KB
  • scripts/user-record.py32.1 KB
  • scripts/user-record.test.py28.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

1password

無料日本語概要

1Password CLIの導入と認証を確認し、保存したパスワードやAPIキーをコマンドや設定へ渡します。デスクトップ連携やサービスアカウントにも対応します。

  • 1Password CLIを導入したいとき
  • APIキーをコマンドに渡したいとき
  • CIでサービスアカウント認証を使う
openclaw/openclaw39.2万2026年10月10日 更新

acp-router

無料日本語概要

OpenClawへの自然な言葉の依頼をClaude Codeなどの外部コーディングエージェントへ振り分け、作業の開始や継続、スレッド内の会話をつなぐスキルです。

  • Claude Codeをスレッドで開始
  • 外部エージェントの作業を続けたいとき
  • acpxから直接指示を渡したいとき
openclaw/openclaw39.2万2026年10月10日 更新

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

日本語の概要は準備中です。原文の説明を表示しています。

openclaw/openclaw39.2万2026年10月10日 更新

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

日本語の概要は準備中です。原文の説明を表示しています。

openclaw/openclaw39.2万2026年10月10日 更新

apple-notes

無料日本語概要

macOSのApple Notesをエージェントから作成・検索・編集・削除し、フォルダ間の移動やHTML・Markdownへの書き出しを行うスキル。

  • タイトルを付けてメモを作りたいとき
  • フォルダ指定やあいまい検索でメモ探し
  • メモの編集とフォルダ整理
openclaw/openclaw39.2万2026年10月10日 更新

apple-reminders

無料日本語概要

Apple Remindersの予定付きToDoをMacから確認・追加・編集するスキル。リストの管理や完了・削除にも対応し、iPhoneやiPadで見るタスクを整理できます。

  • 今日のタスクや期限超過を確認したいとき
  • 期限付きの個人ToDoを追加したいとき
  • iPhoneやiPadのタスクを整理
openclaw/openclaw39.2万2026年10月10日 更新

openclaw のスキルをすべて見る

このスキルの問題を報告する