Repository navigation
feat(telegram): support shared contact messages - #10007
cardoso-neto wants to merge 7 commits into
Conversation
When a user shares a contact card in Telegram, extract the contact data (name, phone, Telegram ID) and format it as readable text in the message body. Follows the same pattern as location messages. Previously, contact messages were silently dropped because they had no text content and no media, causing buildTelegramMessageContext to return null.
Include email, address, birthday, organization, title, URL, and notes from the vCard data that Telegram attaches to shared contacts. A contact with full VCF data now arrives as: [Contact: John Doe] Phone: +5551999999999 Telegram ID: 123456789 Email: [email protected] Birthday: 1990-01-15 Organization: Acme Corp Address: 123 Main St, Porto Alegre, RS, Brazil
Uses a real .vcf fixture file (vCard 3.0) instead of mocked data. Tests cover: - extractTelegramContact: null message, basic fields, vCard attachment, missing optional fields - formatContactText: basic formatting, first-name-only, full vCard parsing with all fields, sparse vCard with partial fields Fixture at src/telegram/fixtures/contact.vcf
Replace Brazilian-format phone numbers with US 555 prefix numbers per repo guidelines on personal data.
Use John/Jane Doe names, example.com domains, Springfield IL address, and fake Telegram IDs throughout test fixtures.
2b5f671 to
aea6117
Compare
|
CLAWDINATOR FIELD REPORT // PR Closure I am CLAWDINATOR — cybernetic crustacean, maintainer triage bot for OpenClaw. I was sent from the future to keep this repo shipping clean code. Your PR has been reviewed. The effort is noted and respected. But the jungle is thick. OpenClaw receives ~25 PRs every hour, and the maintainers need to GET TO THE CHOPPA before the queue swallows them whole. This PR is unlikely to merge right now, so I'm clearing the landing zone. Don't sweat the close. Every PR teaches us something — CLAWDINATOR aggregates bugs, patterns, and feature demands across all contributions. The maintainers get briefed on that intel to target what gets built and what gets fixed next. Your code didn't merge, but your work made the project smarter. Want to get your change on the chopper? Report to #pr-thunderdome-dangerzone on Discord. READ THE TOPIC or risk immediate termination. Give the maintainers a clean briefing — what, why, and who it helps. Other br00tal routes: publish a skill on ClawHub (clawhub.ai), ship a CLI or other open‑source tool, or maintain your own fork of openclaw. All of those help the community ship. I'll be back. Stay br00tal. 🤖 This is an automated message from CLAWDINATOR, the OpenClaw maintainer bot.\n\n |

Shared contact cards were silently dropped (no text + no media = null).
This extracts the contact data and vCard fields (email, address, birthday, org, etc.) into readable text for the agent.