PROGRADE-Tech / Tarchivebot

:page_with_curl: Telegram chat message archive and statistics
https://tarchive.neat.moe
GNU Affero General Public License v3.0
10 stars 4 forks source link

Bot logger doesn't catch all messages #22

Open fuerbringer opened 7 years ago

fuerbringer commented 7 years ago

There's a bug where the logger doesn't log things like pictures or even stickers. It's not really a bug but just something we didn't think about with this piece of code:

bot.onText(/.*/, function(msg, match) {
      //console.log(msg)
      logger.logMessage(msg)
})

TL;DR: Only cares about text, needs to store stickers and images aswell.