-
Notifications
You must be signed in to change notification settings - Fork 61
Telegram Notifications
This page explains how to set up Telegram so that you can get notifications of trades, price alerts and so on via your phone.
This urgently needs to be made more accessible to non-technical users.. Can you help?
- Create a Telegram bot using the BotFather. Note down the API token.
- Create a new channel from the Telegram app, and make it public (we'll make it private shortly).
- Add your bot as a member of the channel, so it can post to it.
- Use the following URL to get the ID of your channel: https://api.telegram.org/YOURBOTID:YOURTOKEN/getChat?chat_id=@YourChannelName
- Once you've noted down the channel ID, make your channel private from the app so no-one else can access it (you can't use the above API to get the IP of a private channel).
You should now have the bot token and chat ID noted down.
Configuration is different depending on how the application is deployed. Select the appropriate section below:
Set the appropriate section in your example-config.yml
file. Uncomment (remove the # symbols) from the following lines, replacing the values with the token and chat id you noted down.
# telegram:
# botToken: YOU
# chatId: REALLYWANTTHIS
Then restart. The application will now use this bot to send you notifications on your private channel. You can add more people to the channel if you like.
Set the TELEGRAM_BOT_TOKEN
and TELEGRAM_CHAT_ID
environment variables. The application will automatically restart.
See the Docker Hub page for the various ways of supplying configuration. The simplest is to simply set environment variables:
docker run gruelbox/orko:stable \
-e TELEGRAM_BOT_TOKEN=YOURTOKEN \
- e TELEGRAM_CHAT_ID=YOURCHATID \
... etc
To test that you are getting notifications correctly, create a price alert which will fire immediately. You should get the alert both on-screen and in your Telegram app.
© 2018 Graham Crockford. All Rights Reserved.
- Home
- Why Orko?
- What can it do?
- Project status
- Roadmap
- Installing locally
- Installing using Docker
- Installing on Heroku
- Configuration Guides
- User Guide
- Supporting the project
- Contributing
- Developer Guide