This project is a simple Telegram bot built using the telebot library. It demonstrates the basic structure of a Telegram bot and uses Poetry for dependency management. The bot responds to commands and messages, and can be easily extended with additional functionality.
- Minimal Telegram bot application
- Responds to '/start' and '/hello' commands
- Echoes all other messages
- Uses telebot for bot functionality
- Uses Poetry for dependency management
- Easy to understand and extend
pip install poetry
poetry installTo run the bot locally:
poetry run python -B main.pyMake sure to set up your .env file with your Telegram bot token:
TELEGRAM_BOT_TOKEN=your_token_hereInitialize your project:
railway initTo deploy the bot on Railway:
railway upRemember to set the TELEGRAM_BOT_TOKEN environment variable in your Railway project settings.TELEGRAM_BOT_TOKEN
Open Telegram, start a chat with your bot, and try the commands /start or /hello. The bot will also echo any other messages you send.