Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CopyStickerBot

Telegram bot for creating and managing sticker packs.
Built with aiogram 3.x.


🚀 Installation (Windows)

  1. Clone the repository:
git clone https://github.com/username/CopyStickerBot.git
cd CopyStickerBot
  1. Create and activate a virtual environment:
python -m venv .venv
.venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.pip
  1. Create a .env file in the project root:
BOT_TOKEN=your_telegram_bot_token

🔥 Run in development mode with hot-reload

To 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

🛑 Run without hot-reload

python src\bot.py

⚠️ Notes

  • 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.exe inside watchmedo to avoid using the system Python without dependencies.
  • To stop the bot, press Ctrl+C in the terminal.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages