TrolyPage

An autonomous Marketing & Sales operating system for businesses that want AI-powered omni-channel growth.

Contact Info

Follow Us

13 min read

Telegram `?start=` Deep-Link Routing: Auto-Sorting Billing, Bug Reports & VIP Support Into Separate Queues

TrolyPage

Nov 28, 2026
56 views
Abstract 3D isometric glassmorphism illustration showing three frosted rings channeling white signals through a prism into separate blue, green, and magenta queue trays.

Telegram ?start= deep-link routing lets SaaS and dev-tool teams pass up to 64 [A-Za-z0-9_-] characters inside t.me/<bot_username>?start=<payload> links placed on pricing pages, dunning emails, and in-app help menus. When a customer taps the link, Telegram sends /start <payload> to your bot webhook, allowing a shared inbox to auto-tag billing, bug, or VIP threads into dedicated queues before the user types a word.

Editorial disclosure: This guide is published by TrolyPage, one of the shared-inbox platforms evaluated below; both capabilities and documented constraints are stated transparently.

Why Contextual ?start= Routing Outperforms Bot Menus and Department Bots

Most teams launch Telegram support with one generic link—https://t.me/YourProductBot—and try sorting requests after arrival. Either the bot shows a multi-step reply keyboard ("Billing," "Bug Report," "Enterprise"), or the company creates separate bots per department. Both patterns leak context and slow first response.

A generic /start menu forces an already blocked customer to tap through prompts before explaining their issue. If someone clicks from a failed Stripe invoice email and ignores the menu to type "Why was my card declined?", the message lands in an untagged general inbox. Spinning up separate bots per team isolates initial traffic, but fragments customer history across multiple tokens and multiplies webhook maintenance.

Embedding a structured ?start= token in each support link removes both bottlenecks because intent arrives in the very first Update payload:

Evaluation Axis Option A: Contextual ?start=<payload> into Unified Inbox + AI Triage (Recommended) Option B: Generic /start Multi-Step Reply-Keyboard Menu Option C: Running 3–4 Separate Bots per Department
Pre-context drop-off Zero extra clicks after Start; intent arrives inside /start <payload>. Worked benchmark: 18%–28% menu abandonment or skipping across 2–3 mandatory taps. Low friction on first click, but ~12%–20% of repeat users message the wrong bot from chat history.
Payload ceiling Up to 64 [A-Za-z0-9_-] chars per Telegram Deep Linking docs (checked 2026-11-28). Unlimited after menu completion; zero structured metadata if skipped. Department inferred from bot handle only; still needs follow-up for plan tier or build ID.
Webhook overhead 1 bot token, 1 setWebhook endpoint, 1 X-Telegram-Bot-Api-Secret-Token rotation. 1 token and webhook, plus state-machine cleanup for abandoned menus. 3–4x bot tokens, setWebhook URLs, secret headers, and getWebhookInfo checks.
Time-to-first-queue SLA lag Instantaneous: sub-second tag and shift assignment on first message. 45–120+ seconds of menu clicking, or hours waiting in an untagged pool. Instant at bot level, but cross-team transfers force users to switch bot handles.
Customer history & handoff Single continuous thread across Billing, Engineering, and VIP shifts. Single thread, often missing structured tags when users bypass buttons. Fragmented customer profiles across separate Telegram bot IDs.

To quantify the operational impact using worked benchmark math (distinct from Telegram's published platform limits), consider a dev-tool desk receiving 1,200 monthly Telegram starts: 450 from pricing pages, 500 from in-app error banners, 150 from dunning emails, and 100 from enterprise portals. Under Option B, a 22% menu-skip rate produces 264 untagged threads monthly. At 3.5 minutes per manual read-and-reassign cycle, L1 agents burn 15.4 hours/month on pure sorting while urgent dunning tickets wait behind routine questions.

Flow diagram showing Telegram ?start= deep-links on pricing pages, invoice emails, and in-app panels sorting tickets into Billing, Bug, and VIP queues
How 64-character ?start= payloads on pricing pages, invoice emails, and app menus pre-sort Telegram tickets into dedicated queues with distinct SLA timers.

Per Telegram's Bot Links API specification (checked 2026-11-28), private deep links accept https://t.me/<bot_username>?start=<parameter> or tg://resolve?domain=<bot_username>&start=<parameter>. Clicking a parameterized link replaces the user's input bar with a Start button—even if they have previously started the bot—invoking messages.startBot and emitting /start <parameter> to your webhook.

Keep Telegram's three link types distinct (Telegram Bot Features, checked 2026-11-28):

  • ?start=<param>: Opens a 1:1 private support thread and delivers /start <param>. Use for billing, dunning, bug reports, and account troubleshooting.
  • ?startgroup=<param>&admin=<permissions>: Prompts group selection and sends /start@<bot_username> <param>. Reserve for shared B2B customer rooms.
  • ?startchannel&admin=<permissions>: Supports no <param> payload; never use for ticket routing.

Deploy one memorable bot handle (such as @AcmeSupportBot) with deterministic prefixes across all six core SaaS touchpoints:

Touchpoint & Surface Prefix Key Copy-Paste URL Pattern (t.me) Payload Length Target Queue & Tags Initial Triage Behavior
1. Pricing Page CTA bill_plan https://t.me/AcmeSupportBot?start=bill_plan_pro_usd_v2 20 chars Billing & Sales (billing, pre-sales) AI answers VAT, seat, and annual discount questions; hands off on custom quotes.
2. Invoice Failure Email inv_dunning https://t.me/AcmeSupportBot?start=inv_dunning_3ds_r2_a9f4c1 25 chars Billing Escalations (dunning, urgent-billing) Immediate Human Handoff (AI paused) with 15-min priority SLA.
3. In-App Bug Drawer bug_app https://t.me/AcmeSupportBot?start=bug_app_ios421_ws9032 21 chars Engineering Triage (bug-report, client-ios) AI collects repro steps, logs workspace ws9032, then routes to L2 shift.
4. VIP Account Portal vip_desk https://t.me/AcmeSupportBot?start=vip_desk_sla15_acct841 22 chars VIP Account Desk (vip, sla-15m) Bypasses AI loop; immediate handoff to dedicated account pod.
5. Team Onboarding onb_team https://t.me/AcmeSupportBot?start=onb_team_sso_seat12 19 chars Onboarding (onboarding, setup) AI delivers setup checklists; escalates after two failed config checks.
6. Annual Renewal Banner renew_annual https://t.me/AcmeSupportBot?start=renew_annual_scale_q4 21 chars Renewals (renewal, scale-tier) AI summarizes current tier and annual savings; routes PO requests to Account Ops.

Every payload uses readable prefix keys so inbox rules match them without custom decoding, while keeping customer emails, invoice totals, and auth tokens out of URLs—exposing only opaque reference IDs like ws9032 or a9f4c1.

Payload Constraints, Base64url Encoding, and Bot API Rate Ceilings

Technical matrix of Telegram ?start= 64-character payload limits, Bot API rate limits, and webhook secret token verification guardrails
Telegram ?start= character/encoding rules alongside Bot API rate-limit ceilings and webhook validation checks to prevent silent routing drops.

Deep-link routing drops silently when templates inject disallowed characters or exceed length limits. Per Telegram's deep-linking specification (checked 2026-11-28), ?start= accepts up to 64 characters strictly within A-Z, a-z, 0-9, _, and -.

That whitelist is narrower than standard URI query rules. Under IETF RFC 3986 (checked 2026-11-28), Section 2.3 marks . and ~ as unreserved, while Section 3.4 allows query delimiters like = and & or percent-encoding (Section 2.1). Telegram rejects all of those inside ?start=: a dot in v2.4, a plus sign, or trailing = padding strips the routing context.

For compact multi-field IDs, Telegram recommends base64url. Under IETF RFC 4648 Section 5 (checked 2026-11-28), base64url swaps + and / for - and _, and allows omitting = padding when byte length is known implicitly—packing up to 48 raw bytes into 64 valid Telegram characters.

Equally important are Bot API delivery and webhook guardrails:

  • Rate limits triggering HTTP 429: Per the Telegram Bots FAQ (checked 2026-11-28), avoid exceeding 1 message/second in a single chat, 20 messages/minute in groups, and ~30 messages/second across free bulk broadcasts. Paid broadcasts via @BotFather scale up to 1,000 messages/second at 0.1 Stars/message above 30/sec (requiring >=100,000 Stars and >=100,000 MAU).
  • Webhook network & TLS rules: Per setWebhook and Telegram's Webhook Guide (checked 2026-11-28), servers must support IPv4 (IPv6 is unsupported), accept HTTPS POSTs from 149.154.160.0/20 and 91.108.4.0/22 on ports 443, 80, 88, or 8443 only, and serve TLS 1.2+ with a valid CN/SAN and full intermediate chain.
  • Secret header & retention: Setting secret_token (1–256 chars from [A-Za-z0-9_-]) attaches X-Telegram-Bot-Api-Secret-Token to every POST; max_connections ranges 1–100 (default 40), and unreceived updates expire after 24 hours (getWebhookInfo, checked 2026-11-28).

Queue Assignment Rules, Shift Handoffs, and SLA Escalation Payloads

Once /start <payload> clears your webhook, inbox rules must bind prefixes to shifts, AI guardrails, and escalation timers.

In TrolyPage, a single Telegram bot connects via its BotFather token and X-Telegram-Bot-Api-Secret-Token verification into a Unified Shared Inbox alongside Website Chat, Email, WhatsApp Cloud API, Messenger, Instagram DM, Zalo, and Twilio SMS. Multiple agents share one bot across shift schedules (shifts) with round-robin assignment, customer profiles, tags, internal notes, saved replies, sentiment scoring, and waiting-chat SLA alerts—without exposing personal Telegram accounts.

Teams ground TrolyPage's AI agent on crawled documentation URLs (knowledge_web) and uploaded text-layer PDFs or spreadsheets (note: TrolyPage does not include OCR for scanned image-only PDFs), then verify routing behavior inside Evaluation Chat before launch. High-urgency prefixes like inv_dunning and vip_desk trigger Human Handoff, pausing AI replies immediately. One documented constraint: TrolyPage does not include a visual drag-and-drop chatbot flow builder, relying instead on AI knowledge/instructions plus trigger-condition-action rules.

Ready-to-Use Asset 2: Queue Assignment Matrix & SLA Breach Alert Payload

Trigger Condition Assigned Queue / Shift AI Assistant Mode SLA Target Escalation Action (Webhook / Zapier / MCP)
/start bill_plan_ or /start renew_annual_ Revenue & Billing (Business Shift) Active: answers VAT, seat, and annual terms; drafts quotes. 30 min on handoff Sync lead to CRM sheet via Workspace MCP or Google Sheets OAuth.
/start inv_dunning_ Billing Escalations (Priority Round-Robin) Paused immediately (handoff). 15 min Fire outbound webhook + Zapier Webhook alert to billing ops.
/start bug_app_ L2 Technical Support (Follow-the-Sun Shift) Active for intake: verifies build/workspace ID, asks for logs, then hands off. 45 min Push summary & workspace ID via outbound webhook to issue tracker.
/start vip_desk_ VIP Account Pod (On-Call Shift) Paused immediately (handoff); tags vip, sla-15m. 15 min (strict) Fire immediate outbound SLA timer webhook + Slack outbound notification.
Bare /start (no payload) General Triage (L1 Shift) Active: asks one clarifying question and applies department tag on reply. 60 min Standard waiting-chat SLA alert at 60 minutes.

External alerts run through outbound/inbound webhooks, Zapier Webhooks, Google Sheets OAuth sync, or TrolyPage's Workspace MCP gateway (the live /mcp page lists 291 total tools across a unified server and 11 domain servers, while /pricing still shows legacy copy referencing 86 tools across 7 servers). Note two honest limits: TrolyPage has no public developer REST API yet (marked in progress), and Slack integration is outbound notifications only rather than a two-way customer inbox.

{
  "event": "sla.waiting_threshold_breached",
  "channel": "telegram_bot",
  "bot_username": "@AcmeSupportBot",
  "route_prefix": "vip_desk",
  "raw_start_payload": "vip_desk_sla15_acct841",
  "assigned_queue": "vip-account-desk",
  "assigned_shift": "eu-west-oncall",
  "ai_handoff_paused": true,
  "sentiment_score": "negative",
  "wait_minutes": 16,
  "sla_limit_minutes": 15,
  "customer": {
    "telegram_user_id": 884120934,
    "account_ref": "acct841",
    "tags": ["vip", "sla-15m"]
  },
  "escalation_action": "Notify on-call lead via outbound Slack ping"
}

Inspecting Telegram's official Bot API server source (WebhookActor.cpp and Client.cpp, checked 2026-11-28) alongside IETF RFC 9110 and IETF RFC 6585 separates non-retryable syntax failures from transient rate limits:

Error / Symptom Bot API Root Cause Primary Source (2026-11-28) Verification & Fix
400 Bad Request or silent ?start= drop WebhookActor.cpp rejects ports outside 80, 88, 443, 8443, plaintext HTTP, long URLs, or bad secret_token chars; payload exceeded 64 chars or used =, +, /, .. setWebhook & RFC 9110 Sec 15.5.1 Never retry unchanged. Validate ^[A-Za-z0-9_-]{1,64}$ in templates; use unpadded base64url; serve HTTPS on port 443/8443.
429 Too Many Requests Exceeded 1 msg/sec per chat, 20 msgs/min per group, or ~30 msgs/sec broadcast limit; Client.cpp parses retry_after. Bots FAQ & RFC 6585 Sec 4 Pause sends for ResponseParameters.retry_after + 1–2s jitter; isolate bulk blasts from live SLA replies.
X-Telegram-Bot-Api-Secret-Token mismatch Missing header, stale rotated token, or invalid secret_token chars outside [A-Za-z0-9_-] (1–256 chars). setWebhook & WebhookActor.cpp Use constant-time comparison; re-register setWebhook with a valid token and verify via getWebhookInfo.
409 Conflict on getUpdates Calling getUpdates while a webhook is active, or two pollers sharing one bot token. getWebhookInfo & RFC 9110 Sec 15.5.10 Keep separate staging tokens; call deleteWebhook only when intentionally switching to polling.
Stalled updates / 24h expiry Firewall blocked 149.154.160.0/20 or 91.108.4.0/22, IPv6-only DNS, missing TLS intermediate cert, or non-2xx errors past 24h retention. Webhook Guide & getWebhookInfo Check getWebhookInfo.last_error_message; verify IPv4 + TLS 1.2+ chain; return HTTP 200 before async queue work.

Pricing, Honest Platform Boundaries, and 15-Minute Rollout Checklist

On TrolyPage's public USD pricing (VAT included; AI and MAU quotas renew monthly even on annual plans), self-serve plans scale by monthly active customers and AI token allowance:

  • Free Trial ($0.00/mo): One-time time-limited workspace trial (not permanent free)—100 MAU, 3 service connections, 2 AI assistants, 50,000 tokens/mo (~12 est. exchanges at ~4k tokens/exchange).
  • Lite ($8.00/mo or $80.00/yr): 250 MAU, 5 connections, 4 AI assistants, 4M tokens/mo (~1,000 est. exchanges).
  • Starter ($16.00/mo or $160.00/yr): 500 MAU, 10 connections, 6 AI assistants, 16M tokens/mo (~4,000 est. exchanges).
  • Pro ($32.00/mo or $320.00/yr): 1,600 MAU, 20 connections, 10 AI assistants, 40M tokens/mo (~10,000 est. exchanges) + TrolyMail.
  • Scale ($104.00/mo or $1,036.00/yr): 10,000 MAU, 30 connections, 50 AI assistants, 200M tokens/mo (~50,000 est. exchanges) + TrolyMail.

Base included seats are confirmed at checkout, with extra team seats priced at $1.00/seat/month. Automated AI runs 24/7, while live vendor staff support runs during Vietnam business hours (UTC+7). For cross-timezone operations, pair this routing schema with our shared-inbox shift handoff guide.

Run these six checks before publishing your ?start= links:

  1. Enforce payload regex: Validate ^[A-Za-z0-9_-]{1,64}$ in frontend and email link builders with zero PII.
  2. Test already-started accounts: Confirm existing bot users see the Start button and emit the new /start <payload>.
  3. Audit webhook health: Verify getWebhookInfo shows zero errors, IPv4 port 443, TLS 1.2+, and matching X-Telegram-Bot-Api-Secret-Token.
  4. Dry-run all prefixes in Evaluation Chat: Test all six prefixes plus bare /start before launch.
  5. Verify SLA escalation alerts: Confirm inv_dunning and vip_desk pause AI replies and fire outbound breach webhooks.
  6. Isolate staging bots: Never run local getUpdates pollers against your production bot token.

Comments

Your comment will appear after review.

Sign in to comment

No comments to show.