Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Python Bot

Deploy on Railway

Overview

This project is a simple Telegram bot built using the telebot library. It demonstrates the basic structure of a Telegram bot and uses uv for dependency management. The bot responds to commands and messages, and can be easily extended with additional functionality.

Key Features

  • Minimal Telegram bot application
  • Responds to '/start' and '/hello' commands
  • Echoes all other messages
  • Uses telebot for bot functionality
  • Uses uv for dependency management
  • Easy to understand and extend

Setup

pip install uv
uv sync

Develop

To run the bot locally:

uv run python -B main.py

Make sure to set up your .env file with your Telegram bot token:

TELEGRAM_BOT_TOKEN=your_token_here

Deploy

Initialize your project:

railway init

To deploy the bot on Railway:

railway up

Remember to set the TELEGRAM_BOT_TOKEN environment variable in your Railway project settings.TELEGRAM_BOT_TOKEN

Test

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.

Learn More

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages