2021年3月5日星期五

How can I fix error with hosting Telegram bot on Heroku?

I tried to host my Telegraf.js bot on Heroku, followed this steps: manual. But I faced an annoying problem with Heroku port

Here's logs: logs

package.json:

{    "private": true,    "main": "dist/index.js",    "scripts": {      "start": "micro-bot",      "start_bot": "nodemon dist/index.js",      "start_tsc": "tsc -w",      "dev": "concurrently \"npm run start_tsc\" \"npm run start_bot\"",      "deploy": "git add . && git commit -m 'update' && git push heroku main"    },    "dependencies": {      "micro-bot": "^2.5.3",      "telegraf": "^3.38.0"    },    "devDependencies": {      "@types/node": "^14.14.12",      "concurrently": "^5.3.0",      "nodemon": "^2.0.6",      "typescript": "^4.1.3"    }  }  

Procfile:

web: micro-bot -p $PORT  

How can I fix it??? Thank you in advance)

https://stackoverflow.com/questions/66501961/how-can-i-fix-error-with-hosting-telegram-bot-on-heroku March 06, 2021 at 11:04AM

没有评论:

发表评论