/pyCTelebot

Telegram bot to trade

Primary LanguagePythonMIT LicenseMIT

pyCTelebot

Description

Telegram bot to trade.

System requirements

Programming language

Packages

APIs

Instructions

Installation

$ pip install pyCTelebot

Configure Vars

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

DataBase

Activate Webhook in Telegram bot

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

Run cron for do something

If you want to run a cron, you can use param -c

$ python -m pyCTelebot.pyCTelebotBase -c

For developers

git clone https://github.com/juanjo78git/pyCTelebot.git
cd pyCTelebot
$ pip install -e . 
$ python -m pyCTelebot.pyCTelebotBase  -poc # Run PoC implemented

Info

License

MIT