Skip to main content

Telegram Bot Integration

Coming Soon

The Telegram bot is in final testing. This documentation is available for preview, but the bot is not yet publicly available.

Reward your Telegram community members with LTZ tokens for participation, engagement, daily check-ins, streaks, and achievements.

Quick Start
  1. Add the bot to your group as admin
  2. DM the bot with /setup to start the secure setup flow
  3. Enter your Brand ID and Security Key in the private chat
  4. Use the activation token in your group with /activate <token>
  5. Your members can immediately use /daily, /balance, /streak, and more!

Features Overview

FeatureDescription
Multi-GroupOne bot instance serves all Loyalteez brands
Secure DM SetupSecurity keys exchanged via private DM, not public chat
Natural ParticipationReward "gm/gn" messages with automatic detection
Daily Check-insAutomated daily rewards with streak bonuses
Streak SystemTrack consecutive daily activity with milestone bonuses
LeaderboardsMulti-metric rankings (LTZ earned, activity, claims)
Perk PurchasesUsers can browse and buy perks directly from Telegram
Manual RewardsAdmins can reward valuable contributions on-the-fly
AchievementsGamified milestones beyond LTZ
Admin ConfigurationFull /config command for event management
Rate LimitingIntelligent behavior-based abuse prevention
Input ValidationSecure handling of all user inputs

Telegram vs Discord Feature Comparison

Telegram has core parity with Discord for all features that apply to the platform.

FeatureDiscordTelegramNotes
Daily check-insSame functionality
Streak systemSame multipliers and milestones
GM/GN detectionSame patterns recognized
Quality message rewardsSame scoring
LeaderboardsSame metrics
Perks & redemptionSame perks catalog
AchievementsSame achievement types
Admin /configSame event management
Manual rewardsSame functionality
Secure setup flowDM-based for Telegram, private channel for Discord
Rate limitingBehavior-based abuse prevention
Input validationSecure input handling
HMAC authenticationSame security mechanism
Role-based bonusesTelegram lacks roles
Voice activity trackingDifferent architecture
Third-party bot integrationDiscord ecosystem
Reaction dropsDiscord components
Boost event rewardsDiscord-specific

Architecture

The Telegram bot uses the same backend infrastructure as Discord:

Telegram Bot (Cloudflare Worker)

Loyalteez APIs
├── Event Handler (api.loyalteez.app)
├── Shared Services (services.loyalteez.app)
│ ├── Community Service (registration, config)
│ ├── Streak Service
│ ├── Leaderboard Service
│ ├── Achievement Service
│ └── Perks Service
└── Pregeneration (register.loyalteez.app)

Shared Services Integration:

  • Community registration and configuration managed centrally
  • Security keys encrypted and stored securely (AES-256-GCM)
  • Streak tracking synchronized with Discord
  • Leaderboards work cross-platform
  • Achievement progress is unified
  • Perks catalog is shared

User Identification

Telegram users are identified using the pattern:

telegram_{USER_ID}@loyalteez.app

This creates a deterministic wallet for each Telegram user, just like Discord.


Next Steps