Skip to content

feat(telegram): support shared contact messages - #10007

Closed
cardoso-neto wants to merge 7 commits into
openclaw:mainfrom
cardoso-neto:feature/telegram-contacts
Closed

cardoso-neto wants to merge 7 commits into
openclaw:mainfrom
cardoso-neto:feature/telegram-contacts

Conversation

@cardoso-neto

@cardoso-neto cardoso-neto commented Feb 6, 2026 •

Copy link
Copy Markdown

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.

@openclaw-barnacle openclaw-barnacle Bot added the channel: telegram Channel integration: telegram label Feb 6, 2026

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread src/telegram/contact.test.ts Resolved
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.
@cardoso-neto
cardoso-neto force-pushed the feature/telegram-contacts branch from 2b5f671 to aea6117 Compare February 6, 2026 01:22
@clawdinator

clawdinator Bot commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant