Table of Contents
- Git
- Golang
- Telegram
- Computer/server to host the app
Open @BotFather on telegram and create a new bot with it's /newbot command.
Assign it a name. This name won't be the one that is shown on each message, so you can name it whatever you want.
@BotFather will grant you a Token. This token is the one that will replace the REPLACE_WITH_TOKEN on the .env.example file on this repository. (Don't forget to rename that file to .env)
You can use the /setcommands to define the uses your bot has on the '/' icon:
price - Use price <symbol> . Gets symbol actual price. Default BTCEUR
historic - Use historic <symbol> . Gets a percentage between Today's and Yesterday's price. Default BTCEUR
summary - Use summary <symbol> . Gets both the price and historic values. Default BTCEUR
notification - Use add <symbol> <compare> <value>| remove <symbol> <compare> <value> | list . Get notified if the symbol es higher > or lower <
Open a Terminal and copy these commands (Linux & Mac devices):
cd ~
git clone https://github.com/miseas/CryptoTelegramBot.git
cd ./CryptoTelegramBot
cp .env.example .env
go get cryptoTelegramBot
go run main.go
You must replace the REPLACE_WITH_TOKEN on the .env file with the Token granted by @BotFather
Once the bot is running, you can add it to a Telegram group and use any of the following commands:
* /price: Use price <symbol> . Gets symbol actual price. Default BTCEUR
* /historic: Use historic <symbol> . Gets a percentage between Today's and Yesterday's price. Default BTCEUR
* /summary: Use summary <symbol> . Gets both the price and historic values. Default BTCEUR
* /notification [add/remove/list] [a_symbol] [a_compare_symbol] [a_value]: . Get notified if the symbol es higher > or lower <
Notifications are still a WIP. You can add/remove or list your notifications. The notifications are checked every 1 min (or custom). After notified 3 times, it will be removed automatically from the list.
(more will be added):
- Binance