Telegram bot for creating and managing sticker packs.
Built with aiogram 3.x.
- Clone the repository:
git clone https://github.com/username/CopyStickerBot.git
cd CopyStickerBot- Create and activate a virtual environment:
python -m venv .venv
.venv\Scripts\activate- Install dependencies:
pip install -r requirements.pip- Create a
.envfile in the project root:
BOT_TOKEN=your_telegram_bot_tokenTo automatically restart the bot whenever any .py or .env file changes:
watchmedo auto-restart --pattern="*.py;*.env" --recursive -- .venv\Scripts\python.exe src\bot.py--pattern="*.py;*.env"– watches both Python files and the environment file--recursive– watches all subdirectories (e.g.src/handlers/).venv\Scripts\python.exe– ensures the bot runs with the virtual environment Python
python src\bot.py- If you see
TelegramConflictError: terminated by other getUpdates request, it means multiple instances of the bot are running with the same token. Make sure only one process is active. - On Windows, always use
.venv\Scripts\python.exeinsidewatchmedoto avoid using the system Python without dependencies. - To stop the bot, press
Ctrl+Cin the terminal.