We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92ae379 commit fee5bf0Copy full SHA for fee5bf0
bot.js
@@ -146,6 +146,14 @@ const track = async () => {
146
} catch (e) { }
147
}
148
149
+bot.catch((err) => {
150
+ console.error('err');
151
+ const ctx = err.ctx;
152
+ console.error(`Error while handling update ${ctx.update.update_id}:`);
153
+ const e = err.error;
154
+ console.error("Error: ", e.description);
155
+});
156
+
157
setInterval(track, 3600000); //Track every hr.
158
159
module.exports = bot;
0 commit comments