This is a simple Telegram bot that logs users' details (name, username, and user ID) to a specific logger group whenever a user starts the bot. It also provides a /getpvt command to fetch group links.
- Logs user details (name, username, user ID) to a logger group when the bot is started.
- Provides a
/getpvtcommand to get a group link.
- Python 3.9+
- Install dependencies with:
pip install -r requirements.txt
- Replace
YOUR_BOT_TOKENwith your bot token from BotFather inbot.py. - Replace
@your_logger_group_or_chat_idwith your logger group's chat ID or username. - Run the bot with:
python bot.py - For deployment, use Heroku or Docker.
- Push the code to a new repository.
- Deploy using
heroku createandgit push heroku main.
-
Build the Docker image:
docker build -t telegram-bot . -
Run the container:
docker run -p 80:80 telegram-bot -
MADE BY SANKI XD