Telegram Support Bot with Tickets and Statuses. Code + Guide Telegram Support Bot with Tickets and Statuses. Code + Guide
Telegram Support Bot with Tickets and Statuses. Code + Guide
Telegram Support Bot with Tickets and Statuses. Code + Guide

Telegram Support Bot with Tickets and Statuses. Code + Guide

Sold <10
0 000 X
There are no such quantities in stock
By clicking the button, you agree to terms for buyers
Secure deal
Instant delivery

Product description

An aiogram 3 bot takes customer requests right in Telegram and turns each one into a ticket: subject + problem description. Support sees new tickets, takes them in progress, replies in chat and closes them when the problem is solved. The customer always sees the status of their ticket: new, in progress, closed. A closed ticket can be reopened if the problem comes back.

Everything is stored locally in SQLite (tickets.db): tickets, answers, statuses and creation times. No external services besides Telegram itself are needed. The bot uses long polling: no open ports or domain are required, just outgoing internet access.

Status transitions are strictly limited: from "new" — to "in progress" or "closed", from "in progress" — to "closed" or back to "new", from "closed" — only to "in progress" (reopen). An invalid transition is rejected with a clear error — in code and in the bot´s buttons. You cannot answer a closed ticket: reopen it first. The ticket´s answer history is kept and visible to both sides.

Setup is one-time: create a bot with @BotFather, find your Telegram ID with @userinfobot, enter the token and the admin list in config.py and run ./run.sh. For permanent work on a VPS the guide includes a ready systemd unit: the bot starts itself on server boot and restarts on failure.

WHAT´S INSIDE THE ARCHIVE
• bot.py — aiogram 3 bot: step-by-step ticket creation, ticket list, support answers, closing and reopening, admin notifications
• tickets.py — logic without Telegram: tickets, status transitions, answers, filters, SQLite storage, config validation
• config.example.py — sample settings: token, admins, database path
• requirements.txt — aiogram dependency, run.sh — one-command launcher
• support-bot.service — systemd unit for autostart on a VPS
• test_support_bot.py — automated logic tests, no live Telegram needed
• README.md and PDF — full guide: BotFather, token, launch, systemd, commands, troubleshooting

GUIDE STEPS
1. Create a bot with @BotFather, save the token.
2. Find your Telegram ID with @userinfobot — that´s ADMIN_IDS.
3. config.example.py → config.py: token and admins.
4. ./run.sh — install dependencies and launch.
5. Check: /new in the bot, an admin answer, closing the ticket.
6. Autostart: the support-bot.service systemd unit.
7. Daily work: /tickets for support, statuses and answers in chat.

WHAT YOU NEED
Python 3.10+ on a computer or VPS, a bot token from BotFather (free, 5 minutes) and the Telegram IDs of the admins. 15 minutes for the first setup.

HONEST LIMITS
The bot does not replace a human: support writes the answers, the bot only takes requests, stores them and shows statuses. There are no auto-replies or AI answers here — if you need a bot that answers by itself from a knowledge base, see the product "n8n AI support bot in Telegram". The bot works only in direct messages: group chats are not supported. One bot — one support team (one ADMIN_IDS list). Tickets are not deleted through the bot — delete a row from tickets.db manually if needed. Never forward your bot token to anyone: it is the key to your bot, like a password.

IMPORTANT
These are files and a guide for self-setup — not a done-for-you installation. If you need the bot installed on your server turnkey, that´s a separate service.

SIMILAR PRODUCTS
• Telegram Poll Bot: Surveys and Voting on aiogram: /itm/telegram-poll-bot-surveys-and-voting-aiogram-code-guide/6443870
• Telegram Booking Bot with Slot Calendar on aiogram: /itm/telegram-booking-bot-with-slot-calendar-on-aiogram-code-guide/6432381
• Telegram Bot for Payments and Receipts on aiogram: /itm/telegram-bot-for-payments-and-receipts-aiogram-code-guide/6439451
• Telegram Cafe Bot: Menu, Cart and Orders on aiogram 3: /itm/telegram-cafe-bot-menu-cart-and-orders-on-aiogram-3-code-guide/6423674
• n8n AI Support Bot in Telegram: Answers from Your Knowledge Base: /itm/n8n-ai-support-bot-in-telegram-answers-from-your-knowledge-base-template-guide/6406585
• Telegram Lead Bot on aiogram 3: Business Card and Request Form: /itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255

Main features

  • Content type File
  • Content description 59,03 kB
  • Updated on the site 25.11.2026

Images

Reviews

No reviews yet

0 000 X
There are no such quantities in stock
By clicking the button, you agree to terms for buyers
Telegram Support Bot with Tickets and Statuses. Code + Guide
1 Sold <10
0 000 X
Secure deal
Instant delivery

You viewed

All images, logos, and names of games, programs, and other products used are taken from public sources and are for informational purposes only. All trademarks, logos, names, and other intellectual property belong to their respective owners. Use of such images on the website does not imply any affiliation or connection with the copyright holders.