diff --git a/bot.py b/bot.py index eeeee10..689f712 100755 --- a/bot.py +++ b/bot.py @@ -13,7 +13,7 @@ def auth(bot, update): bot.sendMessage(chat_id=update.message.chat_id, text="Ooops. Not implemented yet.") def unauth(bot, update): - dbtools.deleteUser(update.message.chat_id) + dbtools.dbHelper().deleteUser(update.message.chat_id) bot.sendMessage(chat_id=update.message.chat_id, text=strings.unauth % setuptools.url()) updater.dispatcher.add_handler(telegram.ext.CommandHandler("start", start))