GiveawayBot
No description available
Install / Use
/learn @XelXen/GiveawayBotREADME
GiveawayBot
Manage giveaways on Telegram using a simple pyrogram script :D
Features
- 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.
- 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
Prerequisites
pyrogramtgcrypto(optional but recommened for faster perf.)
Installation
- 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
Usage
- Configure varfile.py
- 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 6to set giveaway time to 6 hours but you can configure it with any number you want - Send the bot a giveaway post (with a banner image)
- Send the bot giveaways codes (one code per line)
Commands
/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
License
This project is licensed under the Mozilla Public License Version 2.0 - see the LICENSE file for details.
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
