How to Install and Run the Crypto-Telegram Bot – Telegram Group

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.

Clone the crypto-telegrambot repository:

git clone https://github.com/Zidious/crypto-telegrambot
Terminal showing the cloned telegram-bot repository
Cloning the crypto-telegrambot

Navigate to the repository and run the following commands:

npm install

Then:

npm run build
A terminal showing the completed npm install and npm build commands
Installing and building the bot

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
Terminal showing set enviroment variable
Setting the CRYPTO_COFFEE_BOT_TOKEN ENV variable

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 price command:

/p <coin>
Telegram message fetching Bitcoins price and metrics
Price command with Bitcoin
Telegram message fetching Ethereums price and metrics
Price command with Ethereum

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 ☕️

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

Stop posting your emails on public forums! – Telegram Group

Manage Telegram’s free unlimited storage with a Windows app – 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

SupraPartners #84 — SupraOracles partners with iMe Labs to enable token transfers via Telegram – Telegram Group