v1.0.0

Join Flow

How a code becomes a verified member and a stored ledger entry.

Redeem the Code

The member opens the group through a deep link and the bot receives an update carrying the code. The code is looked up, checked for expiry and remaining uses, and tied to the group it was issued for. Single-use codes are burned on first redemption. The update path is /api/webhooks/telegram on the app host.

curl -X POST https://api.tgmembers.co/api/webhooks/telegram \ -H 'X-Telegram-Bot-Api-Secret-Token: <secret>' \ -d '{"message":{"text":"/start a1b2c3","chat":{"id":-100}}}'

Fast acknowledgement

Telegram retries anything it does not see a 200 for, so work is kept small and bounded.

Code, not invite link

Each redemption is attributed to an issued code, so a join is traceable.

Verify and Record

The bot verifies the identity, records the membership state for the group, and appends a joined entry to the ledger with the issuing operator and the redemption time. From then on the member is tracked: a lapsed payment schedules a removal, a removal carries a reason code, and an upheld appeal records a reinstatement beside the original action.

Attributed

The join points back to the code, its issuer and the group, so origin is never a guess.

Append-only

State changes are new entries; earlier history is never rewritten.