Manage giveaways on Telegram using a simple pyrogram script :D
- Easy Registration: The bot can manage and handle the registrations using a simple inline button.
- Time Limit: Each giveaway can have a custom time limit.
- Redeem Feature: Winners can redeem their prizes in their DM.
- Redeem time limit: Each giveaway can have custom time limit to redeem prizes through bot's DM (equivalent to auto-abort time).
- Winner Selection: The bot randomly selects winners from the participants.
- Winner Announcements: The bot sends a message to the group announcing the winners.
- Logging: The bot logs important events like the start of the timer and the sending of the winner list.
- Prelim Execution: Execute a few database commands before starting the main script
- Testing Mode: Use the bot in a testing environment (a seperate test channel and group) to avoid spamming the main group
- On-Demand Abort: Abort the giveaway at any time
- Unused Codes: Get a list of unused codes
- Blacklisting: Blacklist users from participating in the giveaway
pyrogramtgcrypto(optional but recommened for faster perf.)
- Download the latest release zip and extract it to a folder
- Open the repository folder in the terminal
- Install the requirements:
pip install -r requirements.txt - Rename
varfile.renametovarfile.py
- Configure varfile.py with values as asked inside the file.
- Run the script:
python main.py - Add the bot to the groupchat of the channel and the channel and give it messaging permissions
- Use
/settime 24to set giveaway time to 24 hours but you can configure it with any number you want - Send the bot a giveaway post
- Send the bot giveaways codes (one code per line)
/unused: Get a list of unused codes/settime <time>: Set the time limit for the giveaway/ban <user_id>: Ban a user from participating in the giveaway/unban <user_id>: Unban a user from participating in the giveaway/abort: Abort the giveaway/stats: Get the stats from Database
This project is licensed under the Mozilla Public License Version 2.0 - see the LICENSE file for details.