PROJECT · 02

GramMonetize

A Telegram subscription management platform for managing bots, members, subscription plans, payments, referrals, and automated workflows.

THE PROBLEM

Managing paid Telegram communities gets complicated quickly.

Once subscriptions, Telegram channels, payment providers, expiration dates, referrals, and automated messages are involved, manually managing members becomes difficult.

GramMonetize was built to bring those operations into one system.

WHAT I BUILT

  • Telegram subscription management
  • Multiple subscription plans
  • Telegram bot configuration
  • Member management
  • Payment provider integration
  • Payment webhook processing
  • Referral system
  • Promo codes
  • Automated subscription expiration
  • Automated Telegram messages

ARCHITECTURE

Telegram
↓
Telegram Bot
↓
Flask API
DatabaseUsers · Plans · Subscriptions
RedisQueue · Cache
CeleryBackground tasks
PaymentsCheckout · Webhooks

TECHNOLOGY

PythonFlaskSQLAlchemyTelegram Bot APITelethonCeleryRedisPostgreSQLStripeWebhooks

ENGINEERING CHALLENGES

Keeping payment state and subscription state in sync.

Payments don't happen inside the application itself. A customer can start a checkout flow, complete payment, and return later while the application is waiting for the payment provider's webhook.

The system therefore treats webhook events as an important source of truth and uses background processing for operations that shouldn't block the main request.

WHAT I'M WORKING ON

  • Improving payment provider integrations
  • Subscription lifecycle automation
  • Bot management
  • Member and subscription administration
  • More flexible payment routing