Loading...

"Harmony of Mind"

Self-regulation bot
 /   /  "Harmony of Mind"

1. Objective

Project was taken over at an early stage of implementation and required structural refinement. The task was to implement a Telegram bot in Python with a subscription model for access to psychological exercises within the bot.

2. Result

A Telegram bot with the following functionality:

  • Navigation through exercise sections (breathing, cognitive, emotional)
  • Content creation via Markdown with media support
  • 3-level access system: administrator, full, free
  • Loading a mini-app with breathing exercises, full-screen mode
  • Access purchase via YooKassa (secure webhooks, idempotency)
  • User profile displaying subscription status
  • Admin panel for viewing users, their subscriptions, granting and revoking admin rights
  • Message broadcasting to users with FSM and media support

3. Experience

I gained experience working with:

  • Claude 3.7 Sonnet AI model in Cursor IDE
  • Python programming language (asynchronous approach)
  • Telegram Bot API (FSM, Middleware, Webhook), Mini-app debugging
  • YooKassa API for payments
  • Local file DBMS SQLite (aiosqlite)
  • Database migrations using Alembic
  • SQLAlchemy ORM for data access (Repository pattern)
  • Vite local development server
  • VPS on Ubuntu Server with aaPanel
  • Production environment setup (Nginx, Gunicorn, Systemd)
Bot greeting

Payment module operation

Admin panel

Breathing exercises in miniapp

Project details

Client: Private person

Date: July 18, 2025

Link: https://t.me/self_regulation_bot

The project was implemented using a technology stack that was new to me, leveraging modern development tools, including generative models to accelerate the process.


 
 All works Next