Crypto Bot is a simple yet powerful Telegram bot that provides real-time cryptocurrency prices π with just a click of a button! Whether you're a seasoned trader or a crypto enthusiast, this bot keeps you updated with the latest market trends in the crypto world π.
π‘ Instant Prices: Get real-time prices for your favorite cryptocurrencies instantly!
πΉοΈ User-Friendly: Just tap a button, and the bot will fetch the price for you.
π Multi-Currency Support: Track prices for Bitcoin, Ethereum, Litecoin, and more!
- Start the Bot on Telegram π¨
- Choose the Cryptocurrency you want to check π±
- Click the Button to get the latest price for that currency πΈ
π Get Started Here: Click to Launch the Bot π
If you want to run this bot locally, follow these steps:
-
Clone the Repository π
git clone https://github.com/OpenTekHub/crypto-bot.git cd crypto-bot
-
Install Dependencies π οΈ
Install the necessary Python libraries:pip install -r requirements.txt
-
Required Libraries
python-telegram-bot
requests
-
Create a New Bot:
Search for BotFather on Telegram. Type/newbot
and follow the instructions to create your bot. -
Get Your Token:
Copy the TOKEN provided by BotFather. -
Place the Token:
Copy the TOKEN provided by BotFather and paste it in the variable bot_token. -
Find an suitable name:
Place the name in the code for the variable bot_name.
Store your bot token securely as an environment variable.
On Windows:
- Open "Environment Variables" and add a user variable called
BOT_TOKEN
with your bot token as the value.
On Linux/Mac:
-
In the terminal, run:
export BOT_TOKEN="your_bot_token_here"
π‘ Alternatively, replace os.getenv("BOT_TOKEN")
in the code with your token (not recommended for production).
To start the bot, run the following command:
python bot.py
You should see "Polling...", which means your bot is now running and ready to fetch real-time cryptocurrency prices! ππΈ
Hereβs what you can do with the bot:
- /start: Initiate the bot and show the main menu π€
- /help: Get help on how to use the bot π‘
- /convert: Convert cryptocurrencies into different currencies (e.g.,
/convert bitcoin usd 1
) π± - /setalert: Set up price alerts for cryptocurrencies (e.g.,
/setalert bitcoin above 60000
) π - Top 100 Cryptocurrencies: View a list of the top 100 cryptocurrencies π
- Trending Cryptocurrencies: Check out the trending cryptocurrencies π₯
- Search Cryptocurrency: Search for specific cryptocurrencies by name π
We would love your contributions to make Crypto Bot even better! Whether it's adding new features, improving performance, or fixing bugs, your help is appreciated.
Feel free to:
- Fork the repository π΄
- Make your changes π οΈ
- Submit a pull request π
Together, let's build an even more amazing bot! π
Now, you're all set to track cryptocurrency prices effortlessly and stay on top of the market!
π Telegram Bot Link: Click to Use
π If you like this project, don't forget to star the repo! And be sure to follow OpenTekHub for more updates!
π Happy Tracking! π°π