Telegram bot for converting in-game items and currencies (SFL/USD) with real-time rates.
- Python 3.7+
- Telegram bot token (Get from @BotFather)
- Clone repo and install dependencies:
git clone https://github.com/josevdr95new/SFLConversionBot.git
cd SFLConversionBot
pip install -r requirements.txt
- Create a
.env
file in the root directory and add your Telegram bot token:
BOT_TOKEN=your_bot_token_from_BotFather
- Start the bot:
python -m sfl_bot.main
- Open Telegram and search for @BotFather
- Start a chat with BotFather and send
/newbot
command - Follow the instructions to name your bot and create a username
- BotFather will provide a token - save this for your
.env
file - Configure additional bot settings like description and commands using BotFather
The bot includes a health check endpoint to monitor its status and performance.
How to use the /ping
endpoint:
- Ensure the bot is running
- Make a GET request to the
/ping
endpoint using either:- Web browser:
http://localhost:8000/ping
- Command line:
curl http://localhost:8000/ping
- Web browser:
Contributions welcome! Please feel free to submit a Pull Request.