How to Install and Run the Crypto-Telegram Bot
{ 👋 } All,
I recently created a cryptocurrency Telegram BOT which allows you to fetch and any coin listed on CoinGecko and it will reply with all of the insightful data that you need. This article aims to show you how to easily install and configure the BOT.
Note: I have used SSH and a Raspberry Pi for this example, steps on other devices locally or otherwise should be fairly similar.
Step 1:
Clone the crypto-telegrambot repository:
git clone https://github.com/Zidious/crypto-telegrambot
Step 2:
Navigate to the repository and run the following commands:
npm install
Then:
npm run build
Step 3:
Set the CRYPTO_COFFEE_BOT_TOKEN environment variable with your Telegram BOT token.
Note: you can obtain your BOT token from BotFather.
export CRYPTO_COFFEE_BOT_TOKEN=bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
Final step:
That's it! Run the BOT!
npm start
Tip for SSH and Raspberry Pi: adding ‘&’ at the end of your NPM command will start the BOT process in the background of your current SSH Raspberry Pi session, allowing you to do other things. To exit the session and keep the BOT running do the following; CTRL+A and to disconnect the session CTRL+D.
The BOT in action:
The price command:
/p <coin>
Final Thoughts
Upcoming commands include Twitter API integration, and charting, this may include line and/or candlestick charts.
Any questions, feedback, ideas let me know!
Thanks!
{ 👋 } Gabe ☕️
Resources:
Crypto-telegrambot: https://github.com/Zidious/crypto-telegrambot
CoinGecko TypeScript API wrapper: https://github.com/michael-siek/coingecko-api
CoinGecko API: https://www.coingecko.com/
Ten articles before and after
Using Github Actions, Python and Telegram to Get Ribeye Specials – Telegram Group
The art of indexing +1PB data on Telegram – Telegram Group
Telegram in Business: How to Use the Messenger to Increase Sales – Telegram Group
Here Are The Top Crypto Signal Groups In 2022 – Telegram Group
Stop posting your emails on public forums! – Telegram Group
How Telegram Makes Money? Telegrams New Plan to Generate Cash – Telegram Group
How I made +25% in few hours with the help of trading bot! – Telegram Group
Monitoring Ethereum Wallets with Python & Telegram – Telegram Group
Crypto Bot Binance + Telegram. Write your own alert bot for any type… – Telegram Group