This Telegram bot provides users with the current exchange rate of the US Dollar to the Russian Ruble, taking into account the predefined commission. The bot is built using Python and aiogram library, and the project uses Poetry for environment management. Firebase is used as the database for storing data.
Before running the bot, ensure you have the following prerequisites installed:
- Python (version 3.11 or higher)
- Poetry (version 1.6.1 or higher)
- Firebase account and project
- Telegram Bot Token
This Telegram bot provides users with the current exchange rate of the US Dollar to the Russian Ruble, taking into account the predefined commission. The bot is built using Python and aiogram library, and the project uses Poetry for environment management. Firebase is used as the database for storing data.
-
Clone the repository:
git clone [email protected]:NNakleskin/USD-RUB-currency-bot.git
-
Navigate to the project directory:
cd USD-RUB-currency-bot
-
Install dependencies using Poetry:
poetry install
-
Create a new file named
.env
in the project directory and add the following variables:BOT_TOKEN=<YOUR_TOKEN> FIREBASE_URL=<YOUR_URL> Replace `<YOUR_TOKEN>` with your Telegram Bot Token obtained from the BotFather. Replace `<YOUR_URL>` with the URL of your Firebase project.
Ensure you have set up a Firebase project and enabled the Firestore database. The FIREBASE_URL
in the .env
file should point to the URL of your Firebase project.
Contributions to this project are welcome. If you find any issues or want to add new features, please open an issue or submit a pull request.
This project is licensed under the MIT License.