Telegram Support Bot with Tickets and Statuses. Code + Guide

Price in currencies:
14.81 $ · 1050 RUB · 13.49 €
Category:
Others
Item:
support-bot-tickets-v1.0.zip (59.03 KB)
Uploaded:
25.11.2026 11:43:27
Sales:
0
Refunds:
0
Seller:
Новинка Супер хит! · about the seller and their products
14.81 $

You will choose the payment method — bank card, cryptocurrency, WebMoney, Alipay, PIX, UPI and others — on the next step. See «Payment methods» for details.

DESCRIPTION

Telegram Support Bot with Tickets and Statuses. Code + Guide

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: https://plati.market/itm/telegram-poll-bot-surveys-and-voting-aiogram-code-guide/6443870
• Telegram Booking Bot with Slot Calendar on aiogram: https://plati.market/itm/telegram-booking-bot-with-slot-calendar-on-aiogram-code-guide/6432381
• Telegram Bot for Payments and Receipts on aiogram: https://plati.market/itm/telegram-bot-for-payments-and-receipts-aiogram-code-guide/6439451
• Telegram Cafe Bot: Menu, Cart and Orders on aiogram 3: https://plati.market/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: https://plati.market/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: https://plati.market/itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255

REVIEWS

Reviews: (0)

No customer reviews yet.

More in «Others»

All items in «Others» →