Skip to content

Commit fc15270

Browse files
committed
Ignore past messages when in development
1 parent f9fac17 commit fc15270

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bot/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ const config = require('../config.json');
55

66
const bot = new Telegraf(config.token);
77

8+
if (process.env.NODE_ENV === 'development') {
9+
bot.state.offset = -1;
10+
}
11+
812
module.exports = bot;
913

1014

0 commit comments

Comments
 (0)