We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdd285d commit a5c4663Copy full SHA for a5c4663
2 files changed
package.json
@@ -20,7 +20,7 @@
20
"clean": "rm -rf dist",
21
"main": "npm run build & node --env-file=.env dist/app.js",
22
"start": "NODE_ENV=development node --trace-uncaught -r ts-node/register --env-file=.env src/app.ts",
23
- "start:deploy": "npm run build && NODE_ENV=production node dist/app.js"
+ "start:deploy": "NODE_ENV=production node --trace-uncaught -r ts-node/register src/app.ts"
24
},
25
"repository": {
26
"type": "git",
src/bot/index.ts
@@ -44,7 +44,6 @@ export class CopBot {
44
}
45
} else {
46
try {
47
- await this._bot.api.getUpdates({ offset: -1 });
48
await this._bot.start({
49
onStart: (botInfo) => {
50
console.log(`Bot started in long-polling mode! Username: ${botInfo.username}`);
0 commit comments