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
The art of indexing +1PB data on Telegram – Telegram Group
Телеграм бот для уведомлений об ордерах Binance – Telegram Group
IntruderDet —An Intruder Detection Bot for my Appartment – Telegram Group
Send APK automatically to Telegram using Dart/Flutter – Telegram Group
How to build a Telegram bot to show Chainlink price feeds – Telegram Group
How to create a Telegram bot with Python in under 10 min! – Telegram Group
Monitor Server with Telegram Bot and Python – Telegram Group
Google Sheets Formula & Telegram Message ✈️ – Telegram Group
How to Create a Telegram Chatbot in 2022 – Telegram Group
Telegram Bot 跟我想的不一樣. 第一天進公司時,Slack就被邀進同事們訂便當的群組,在上面會宣布今天訂那一家便… – Telegram Group