Skip to content

I have fixed the mention issue as "The bot inconsistently retrieves cryptocurrency prices, working for some like Bitcoin but failing for others. It often returns errors saying details can't be found for certain coins."

License

Notifications You must be signed in to change notification settings

Dipak7781/cryptobot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Crypto Bot - Telegram Bot for Real-Time Cryptocurrency Prices 💰

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 🌍.


Features

💡 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!


🎯 How to Use 🎯

  1. Start the Bot on Telegram 📨
  2. Choose the Cryptocurrency you want to check 💱
  3. Click the Button to get the latest price for that currency 💸

🚀 Get Started Here: Click to Launch the Bot 🚀


🛠️ Installation 🛠️

If you want to run this bot locally, follow these steps:

  1. Clone the Repository 📂

    git clone https://github.com/yourusername/crypto-bot.git
    cd crypto-bot
    
  2. Install Dependencies 🛠️
    Install the necessary Python libraries:

    pip install -r requirements.txt
  3. Required Libraries

    • python-telegram-bot
    • requests

⚙️ Set Up Your Bot on Telegram ⚙️

  1. Create a New Bot:
    Search for BotFather on Telegram. Type /newbot and follow the instructions to create your bot.

  2. Get Your Token:
    Copy the TOKEN provided by BotFather.


🔐 Set Environment Variables 🔐

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).


▶️ Running the Bot ▶️

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! 🚀💸


🧑‍💻 Bot Commands 🧑‍💻

Here’s what you can do with the bot:

  • /start: Initiate the bot 🤖
  • /help: Get help on how to use the bot 💡
  • /price: Fetch real-time prices for Bitcoin, Ethereum, Litecoin and more! 💰

🤝 Contributions Welcome! 🤝

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! 🌟


📲 Enjoy Tracking Crypto with Ease! 📲

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! 💰📈

About

I have fixed the mention issue as "The bot inconsistently retrieves cryptocurrency prices, working for some like Bitcoin but failing for others. It often returns errors saying details can't be found for certain coins."

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Procfile 0.2%