Telegram bot to trade.
- python-telegram-bot (doc)
- CCXT – CryptoCurrency eXchange Trading Library (doc)
- APScheduler - Advanced Python Scheduler (doc)
$ pip install pyCTelebot
Vars | Description |
---|---|
TOKEN_TELEGRAM | Token telegram bot |
WEBHOOK_URL_TELEGRAM | URL app in Heroku or other server |
TELEGRAM_ADMIN_GROUP | Telegram admin group id list. Format: [chat_id] |
ENV_CONFIG | Environment config. log values: DEBUG / INFO / WARNING / ERROR / CRITICAL. env values: TEST / PROD. Default values: {"log": "DEBUG", "env": "TEST"} |
DATABASE_URL | DB Connection |
ENCRYPTION_KEY | Encryption key for APIs |
Execute: https://api.telegram.org/bot<TOKEN_TELEGRAM>/setWebHook?url=<WEBHOOK_URL_TELEGRAM> Info about your webhook: https://api.telegram.org/bot<TOKEN_TELEGRAM>/getWebhookInfo
$ python -m pyCTelebot.pyCTelebotBase
NOTE: If you want to run it with polling, you can use param -Tp
$ python -m pyCTelebot.pyCTelebotBase -Tp
If you want to run a cron, you can use param -c
$ python -m pyCTelebot.pyCTelebotBase -c
git clone https://github.com/juanjo78git/pyCTelebot.git
cd pyCTelebot
$ pip install -e .
$ python -m pyCTelebot.pyCTelebotBase -poc # Run PoC implemented