The Telegram bot utilizes a crypto API to provide users with real-time data on cryptocurrency, including current prices, transaction volumes, and other relevant coin-specific information.
- Real-time Price Updates: Stay informed with up-to-the-minute cryptocurrency prices.
- News Feed Integration: Receive the latest news about the cryptocurrency market.
- User Queries: Interact with the bot to get information about specific cryptocurrencies.
Before you begin, ensure you have the following:
- Python (Python3): The primary programming language for the bot.
- Flask: A micro web framework built in Python.
- Python-telegram-bot: A Telegram API wrapper in Python.
- Requests: A popular Python HTTP library.
- Telegram: The messaging platform used to host the bot.
- Heroku: A cloud platform used for deployment.
Before you begin, ensure you have met the following requirements:
-
Clone this repository to your local machine.
git clone <https://github.com/your-username/Crypto_Hub.git> cd Crypto_Hub
-
Install the required dependencies.
pip install -r requirements.txt # For Python
-
Install Heroku CLI for deployment. Follow the instructions on the Heroku website to install the CLI for your operating system.
heroku login
-
Create a new Telegram bot on BotFather.
-
Note down the token provided by BotFather.
-
Obtain API keys for cryptocurrency data from providers such as CoinGecko or CoinMarketCap.
-
Configure your bot by creating a
.env
file with the following content:TELEGRAM_BOT_TOKEN=your-telegram-bot-token CRYPTO_API_KEY=your-crypto-api-key
-
Run your bot application.
Replace with your startup command python bot.py # For Python
-
Start a chat with your bot on Telegram.
-
Use the available commands to interact with the bot and receive cryptocurrency information.
Contributions are welcome! If you'd like to contribute to the project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and submit a pull request.
This project is licensed under the MIT License.
Special thanks to the creators of the Telegram API and cryptocurrency data providers.
- Brian Kin Maleek (maleekmalik@gmail.com)
- Esther Wachuka (estherwachukangaru@gmail.com)