A Pyrogram-based Telegram bot that automatically sends recurring reminder messages (with an image and buttons) to your Telegram group β perfect for project updates, marketing reminders, or community engagement!
- π Automatic hourly reminders (you can modify the interval)
- πΌοΈ Sends reminders with images and custom captions
- π Inline buttons for quick access to your links (Website, Twitter, Discord, etc.)
- π Automatically deletes the previous message before sending a new one
- π§βπ» Includes admin-only control commands
- βοΈ Easy setup β just plug in your tokens and group ID
Install dependencies:
pip install pyrogram tgcrypto-
Clone this repository
git clone https://github.com/yourusername/vtrading-reminder-bot.git cd vtrading-reminder-bot -
Edit
main.pyFill in the following values:API_ID = 123456 # Your Telegram API ID API_HASH = "your_api_hash" # Your Telegram API Hash BOT_TOKEN = "your_bot_token" # Telegram Bot Token from @BotFather VTRADING_CHAT_ID = -100123456789 # Your group chat ID REMINDER_IMAGE_URL = "https://your-image-link.com/image.jpg"
-
Customize your message & buttons
REMINDER_MESSAGE = "π₯ Donβt miss out on the latest VTrading updates! π" REMINDER_BUTTONS = InlineKeyboardMarkup([ [InlineKeyboardButton("π Website", url="https://example.com")], [InlineKeyboardButton("π Twitter", url="https://twitter.com/yourpage"), InlineKeyboardButton("π¬ Discord", url="https://discord.gg/yourserver")], [InlineKeyboardButton("π Linktree", url="https://linktr.ee/yourpage")] ])
-
Run the bot
python main.py
| Command | Access | Description |
|---|---|---|
/start_reminder |
Admin Only | Starts the hourly reminder loop |
!id |
Group | Displays the current chat ID |
/start |
Private | Confirms bot is active |
Sample Reminder Message:
π₯ Donβt miss out on the latest VTrading updates!
Stay connected and earn rewards with every trade π
-
π Change reminder interval
Modify the line:await asyncio.sleep(3600) # 3600 = 1 hour
to your preferred time in seconds (e.g.,
1800for 30 minutes). -
π Limit
/start_reminderaccess
Change the user ID in:@app.on_message(filters.command("start_reminder") & filters.user(5906045989))to your own Telegram user ID.
Chiran
π¬ Telegram: @MCX79
This project is licensed under the MIT License β feel free to use and modify it for your own projects.
β Star this repo if you found it helpful!