Telegram Poll Bot: Surveys and Voting (aiogram). 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
Create polls right in Telegram: a question, answer options, one or several answers, an anonymous or open poll. Participants vote with buttons under the poll, and the results are visible at once — with percentages and bars. The author closes the poll, checks statistics and exports the results to CSV. Several polls can run at the same time — votes in one poll never affect another. All polls and votes live in SQLite — no external databases or subscriptions.
Creating a poll is step-by-step with /newpoll: a question, options one message at a time (2 to 12), then «multiple answers?» and «anonymous?». A finished poll can be forwarded to a group or channel — anyone who sees it can vote. In a single-answer poll a new vote replaces the old one: changed your mind, tap another option, and the counter is not inflated. In a multiple-answer poll a button toggles an option: tap to add, tap again to remove. Voting again for the same option changes nothing.
Percentages are counted from the number of people who voted, not from the number of votes: in a multiple-answer poll the percentages across options can add up to more than 100% — that is normal. A closed poll accepts no more votes: results stay visible, and new votes are rejected. Only the author or an admin can close or delete a poll. In an anonymous poll voters´ names are never shown, neither in the results nor in the export.
WHAT´S INSIDE THE ARCHIVE
• bot.py — aiogram 3 bot: step-by-step poll creation (FSM), button voting, results, closing, export, /admin
• keyboards.py — buttons: main menu, creation steps, voting, poll management, admin panel
• polls.py — logic without Telegram: creation, voting, vote changes, percentage counting, closing, export, statistics
• db.py — SQLite storage: polls, options, votes
• config.py — settings from .env: bot token, admins, poll limits
• .env.example — sample settings: bot token, admins
• requirements.txt, polls-bot.service, run.sh — dependencies, VPS service, one-command launcher
• test_polls_bot.py — automated logic tests, no live Telegram needed
• README.md and PDF — full guide: setup, poll creation, voting, results, deploy
GUIDE STEPS
1. Create a bot with @BotFather, get your ID from @userinfobot → .env.
2. ./run.sh — the bot answers /start.
3. /newpoll: question → options → multiple answers? → anonymous?
4. Forward the poll to a group or channel — anyone who sees it can vote.
5. Results — the «Results» button under the poll, or /results <number>.
6. Closing — the owner´s button, or /close <number>.
7. Export — /export <number>, a CSV file with the results.
8. On a VPS: a systemd service keeps the bot running.
WHAT YOU NEED
Python 3.10+ on a computer or VPS and a bot token from @BotFather. 10 minutes.
HONEST LIMITS
The bot does not count votes in Telegram´s built-in polls — these are the bot´s own button polls. In an open poll voters´ names are not published: only vote counts and percentages are visible. Voting has no channel-subscription check and no protection against voting from several accounts: one account means one vote per option, but a person may have several Telegram accounts. Deleting a poll is irreversible: options, votes and results go with it.
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 Bot for Payments and Receipts (aiogram): /itm/telegram-bot-for-payments-and-receipts-aiogram-code-guide/6439451
• Telegram Booking Bot with Slot Calendar on aiogram: /itm/telegram-booking-bot-with-slot-calendar-on-aiogram-code-guide/6432381
• Telegram Cafe Bot: Menu, Cart and Orders on aiogram 3: /itm/telegram-cafe-bot-menu-cart-and-orders-on-aiogram-3-code-guide/6423674
• WireGuard Bot: Issue VPN Configs to Your Team from Telegram: /itm/wireguard-bot-issue-vpn-configs-to-your-team-from-telegram-code-guide/6429337
• Telegram Lead Bot on aiogram 3: Business Card + Request Form: /itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• Telegram bot on VPS with systemd — autostart and logs: /itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
Creating a poll is step-by-step with /newpoll: a question, options one message at a time (2 to 12), then «multiple answers?» and «anonymous?». A finished poll can be forwarded to a group or channel — anyone who sees it can vote. In a single-answer poll a new vote replaces the old one: changed your mind, tap another option, and the counter is not inflated. In a multiple-answer poll a button toggles an option: tap to add, tap again to remove. Voting again for the same option changes nothing.
Percentages are counted from the number of people who voted, not from the number of votes: in a multiple-answer poll the percentages across options can add up to more than 100% — that is normal. A closed poll accepts no more votes: results stay visible, and new votes are rejected. Only the author or an admin can close or delete a poll. In an anonymous poll voters´ names are never shown, neither in the results nor in the export.
WHAT´S INSIDE THE ARCHIVE
• bot.py — aiogram 3 bot: step-by-step poll creation (FSM), button voting, results, closing, export, /admin
• keyboards.py — buttons: main menu, creation steps, voting, poll management, admin panel
• polls.py — logic without Telegram: creation, voting, vote changes, percentage counting, closing, export, statistics
• db.py — SQLite storage: polls, options, votes
• config.py — settings from .env: bot token, admins, poll limits
• .env.example — sample settings: bot token, admins
• requirements.txt, polls-bot.service, run.sh — dependencies, VPS service, one-command launcher
• test_polls_bot.py — automated logic tests, no live Telegram needed
• README.md and PDF — full guide: setup, poll creation, voting, results, deploy
GUIDE STEPS
1. Create a bot with @BotFather, get your ID from @userinfobot → .env.
2. ./run.sh — the bot answers /start.
3. /newpoll: question → options → multiple answers? → anonymous?
4. Forward the poll to a group or channel — anyone who sees it can vote.
5. Results — the «Results» button under the poll, or /results <number>.
6. Closing — the owner´s button, or /close <number>.
7. Export — /export <number>, a CSV file with the results.
8. On a VPS: a systemd service keeps the bot running.
WHAT YOU NEED
Python 3.10+ on a computer or VPS and a bot token from @BotFather. 10 minutes.
HONEST LIMITS
The bot does not count votes in Telegram´s built-in polls — these are the bot´s own button polls. In an open poll voters´ names are not published: only vote counts and percentages are visible. Voting has no channel-subscription check and no protection against voting from several accounts: one account means one vote per option, but a person may have several Telegram accounts. Deleting a poll is irreversible: options, votes and results go with it.
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 Bot for Payments and Receipts (aiogram): /itm/telegram-bot-for-payments-and-receipts-aiogram-code-guide/6439451
• Telegram Booking Bot with Slot Calendar on aiogram: /itm/telegram-booking-bot-with-slot-calendar-on-aiogram-code-guide/6432381
• Telegram Cafe Bot: Menu, Cart and Orders on aiogram 3: /itm/telegram-cafe-bot-menu-cart-and-orders-on-aiogram-3-code-guide/6423674
• WireGuard Bot: Issue VPN Configs to Your Team from Telegram: /itm/wireguard-bot-issue-vpn-configs-to-your-team-from-telegram-code-guide/6429337
• Telegram Lead Bot on aiogram 3: Business Card + Request Form: /itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• Telegram bot on VPS with systemd — autostart and logs: /itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
Main features
- Content type File
- Content description 66,32 kB
- Updated on the site 24.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
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.