Python solution Create .env file in the project root BOT_TOKEN=your_bot_token TEST_USER_ID=your_user_telegram_id Install requirements pip install -r requirements.txt To run tests use the following command pytest .