Stage 9: Telegram integration (connector, Mini App, out-of-app push) #10
Reference in New Issue
Block a user
Delete Branch "feature/stage-9-telegram"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stage 9 — Telegram integration.
Connector (
platform/telegram, own container, bot token only there): go-telegram/bot long-poll (/startdeep-links + Mini App launch button); gRPC APIpkg/proto/telegram/v1(ValidateInitData,Notify,SendToUser/SendToGameChannel— admin, wired Stage 10); test-env Bot API override; Dockerfile + compose (VPN sidecar).Gateway: initData validation relocated into the connector (token dropped,
internal/authdeleted), called over gRPC (GATEWAY_CONNECTOR_ADDR); out-of-app push routed for offline recipients via/internal/push-target+ the in-app-only flag (race-free de-dup).Backend: migration
00007notifications_in_app_only(default true); Telegram language/display-name seeding on first contact;/internal/push-target.UI: Mini App launch/auth/theme,
/telegram/guard, deep-link routing (g/i/f),authTelegram, in-app-only profile toggle, share-to-Telegram link. Vitest + Playwright.Verified locally: gofmt/vet/build/test across backend+pkg+gateway+platform; backend integration tests; UI check/unit/build (86 KB gzip)/e2e (chromium + webkit); connector
docker build.5290157999to3590df28db3590df28dbto9814d78ae39814d78ae3tocf66ed7e26