A Telegram group management bot that welcomes new members and bids farewell when they leave.
- Auto welcome message when someone joins
- Farewell message when someone leaves
- Member count in welcome message
/setwelcome <message>— Set custom welcome message (admins only)/clearwelcome— Reset to default message (admins only)/help— Show commands and placeholders
Use these in your custom welcome message:
{name}— Member's first name{group}— Group name{count}— Current member count
Example:
/setwelcome Welcome {name} to {group}! You're member #{count} 🎉
- Clone the repo
git clone https://github.com/aditya4w/Greeter-Telegram-Bot
cd Greeter_TGBot- Install dependencies
pip install python-telegram-bot- Configure
cp config.example.py config.py- Add your credentials in
config.py
TOKEN = 'your-bot-token'
BOT_USERNAME = '@your-bot-username'-
Add bot to your group and make it admin
-
Run
python main.py- Python
- python-telegram-bot v22
- SQLite