Create config.dev.json
and config.prod.json
with configs:
{
"BOT_TOKEN": "%token%",
"CACHE_ENABLED": false,
"REDIS_HOST": "%host%",
"REDIS_PORT": 5555,
"REDIS_PASS": "%pass%",
"ADMIN_TOKEN": "%token%"
}
Where:
BOT_TOKEN
- telegram's bot tokenCACHE_ENABLED
- enable/dissable redis cacheREDIS_HOST / REDIS_PORT / REDIS_PASS
- redis credentialsADMIN_TOKEN
- randomly generated string for auth in system
Set new webhook:
BOT_TOKEN=token && \
BOT_WEBHOOK=webhook && \
curl "https://api.telegram.org/bot$BOT_TOKEN/setWebhook?url=$BOT_WEBHOOK"