debug logger for all received tg messages

This commit is contained in:
Tomáš Mládek 2019-08-28 11:41:51 +02:00
parent 49cdb48bba
commit d19512e3eb

View file

@ -460,6 +460,8 @@ class DelojzaBot:
return ytdl_res or raw_res
def tg_handle(self, bot, update):
self.logger.debug(f"Received from: {update.message.from_user} ({update.message.chat.id}): " +
update.message.text)
hashtags = self._get_hashtags(update.message)
if hashtags:
url_res = self.handle_urls(update.message, self._get_hashtags(update.message))