SurfAgent Telegram Web
by @surfagentapp
Telegram Web platform skill for SurfAgent, covering chat state, composer flows, send verification, and when to use the Telegram Web adapter over raw browser...
clawhub install surfagent-telegram-webπ About This Skill
name: telegram-web description: Telegram Web platform skill for SurfAgent, covering chat state, composer flows, send verification, and when to use the Telegram Web adapter over raw browser control. version: 1.0.0 metadata: openclaw: homepage: https://surfagent.app emoji: "βοΈ"
Telegram Web
> Telegram Web operating skill. Use this with the core browser-operations skill.
This skill teaches agents how to work Telegram Web without treating a brittle chat UI like a generic web form.
1. Use this skill for
2. Tool preference
Use this order: 1. Telegram Web adapter state tools 2. Telegram Web adapter composer and send tools 3. targeted browser evaluation only when needed 4. raw generic browser actions as fallback
Prefer Telegram-native verbs over improvised DOM pokes.
3. Telegram Web truths that matter
Telegram Web is not a normal static page.
It has:
Important: a send attempt is not success unless the UI shows the message actually landed.
4. Core Telegram loop
Default loop: 1. confirm Telegram Web state 2. open or confirm the correct chat 3. inspect visible messages or composer state 4. fill the draft if needed 5. verify the intended text is present 6. send 7. verify the composer changed and the message appears
5. Proof rules
For Telegram Web, success requires: 1. correct chat is open 2. intended text is present before send 3. composer clears or materially changes after send 4. last visible message reflects the sent content, or stronger site-native confirmation exists
Do not claim success from only:
6. When to use the Telegram Web adapter
Prefer the Telegram Web adapter for:
Current Telegram Web adapter verbs:
tgweb_health_checktgweb_opentgweb_get_statetgweb_open_chattgweb_extract_visible_messagestgweb_extract_chatstgweb_get_composer_statetgweb_fill_composer_drafttgweb_send_message7. When raw browser control is acceptable
Use targeted browser control only when:
Even then:
8. Common Telegram Web blockers
Watch for:
When blocked:
9. Token-efficiency rules for Telegram Web
Prefer:
Avoid:
10. Minimal Telegram Web checklist
Before claiming a Telegram Web task done, confirm:
11. Relationship to other docs
Use alongside:
browser-operations for universal browser rules