telegraf / micro-bot

:robot: Zero-configuration Telegram bot runner
MIT License
182 stars 29 forks source link

Connect to NOW #19

Open adrientiburce opened 5 years ago

adrientiburce commented 5 years ago

I create a simple Micro-Bot following the ReadMe, I tried to deploy it using Now but I don't get it : My Bot is deployed, I used now -e BOT_TOKEN='YOUR BOT TOKEN' When I go to https://api.telegram.org/bot/getWebhookinfo I see this : image

My bot in just not responding unless I type BOT_TOKEN='TOKEN' npm start how can I make it running without having to do this ? Thanks for your help

Samleo8 commented 5 years ago

Perhaps you can try adding scripts to your package.json

"scripts": {
    "now-start": "micro-bot -t {BOT_TOKEN}",
    "start": "now -e BOT_TOKEN=@secret-api-key --public"
  }

Check out this on how to setup your secret now key.