Permalink
Browse files

New error handler, video receiving bug fixedand updated dependencies/…

…security fix
  • Loading branch information...
bostrot committed Feb 8, 2019
1 parent 5bba5d0 commit 4b61d3b9cef7f18c1863b03438fd928f1e229bf1
Showing with 778 additions and 4,287 deletions.
  1. +6 −1 bin/support.js
  2. BIN bot.db
  3. +1 −1 config.js
  4. +760 −4,275 package-lock.json
  5. +11 −10 package.json
@@ -280,7 +280,7 @@ bot.on('photo', downloadPhotoMiddleware, (ctx, next) => {

// handle video input
bot.on('video', downloadVideoMiddleware, (ctx, next) => {
handler.photo(bot, ctx);
handler.video(bot, ctx);
});

// handle file input
@@ -290,6 +290,11 @@ bot.on('document', downloadDocumentMiddleware, (ctx, next) => {

bot.hears(/(.+)/, (ctx) => handler.ticket(bot, ctx));

// telegraf error handling
bot.catch((err) => {
console.log('Error: ', err)
})

bot.startPolling();
/*
If you receive Error: 409: Conflict: can't use getUpdates method while
BIN +12 KB bot.db
Binary file not shown.
@@ -20,4 +20,4 @@ module.exports = {
lang_regards: 'Best regards,',
lang_from: 'from',
lang_language: 'Language',
};
};
Oops, something went wrong.

0 comments on commit 4b61d3b

Please sign in to comment.