Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Telegram bot for conducting giveaways

A professional bot for organizing giveaways and contests in Telegram channels with advanced automation capabilities.

Main features:
The bot allows channel administrators to create and manage giveaways with customizable participation conditions. It supports two participation modes: manual, where users click a button to participate, and automatic, where all channel members are added instantly. Administrators can require subscription to multiple channels before participation.

Scheduling and management:
Giveaways can be published immediately or scheduled for a specific date and time. The completion conditions are flexible - either upon reaching the target number of participants or at a specified time. The bot automatically selects random winners and announces the results in the channel.

Advanced functionality:
The built-in participant management system allows adding or removing users manually. Active giveaways can be edited in real-time including text, button labels, number of winners, and end time. The mailing feature sends personalized notifications about the giveaway to all channel participants.

Technical implementation:
Created in Python using the aiogram framework for bot functionality and Telethon for advanced Telegram API capabilities. Uses an SQLite database for data storage. Supports multiple time zones and includes automatic schedulers for time-based giveaways. Session management ensures continuous authentication for automated functions.

Automation:
Automatic participant scanning uses the Telegram API to collect all channel members except administrators and bots. The mailing system sends messages to channel participants with flood protection and automatic retry logic. Background schedulers check completed giveaways and scheduled publications every 30 seconds.

Security:
Administrator access is controlled by user ID verification. Environment variables for sensitive data. Session files are stored securely. Subscription verification before participation. Rate limiting is implemented to prevent abuse of the Telegram API.

Technology stack:
Python 3.8+, aiogram for Telegram Bot API, Telethon for MTProto, SQLite for the database, pytz for timezone handling. Modular architecture with separate handlers for different bot functions.

Installation:
Simple setup process with a virtual environment and pip dependencies. Configuration through environment variables. No complex deployment requirements - works on any server that supports Python.

Repository:
https://github.com/fedyaqq34356/Random-bot.git

Questions and support:
https://github.com/fedyaqq34356/Random-bot/issues

The bot is fully functional, tested, and ready for deployment. Open source with clean, documented code structure.
Work details
Added 12 February
176 views
Freelancer
Heorhii Zhukov
Ukraine Kyiv  23  0

Available for hire Available for hire
23 Safes completed
On the service 9 months 14 days