From 1900d516a947c26e2d7f1a6dacb4bcee53c5dc2f Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 8 Feb 2017 13:06:58 +0100 Subject: [PATCH] Fix function calls --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 4f386e6..1b2c966 100755 --- a/bot.py +++ b/bot.py @@ -7,14 +7,14 @@ logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s updater = telegram.ext.Updater(token=setuptools.token()) def start(bot, update): - bot.sendMessage(chat_id=update.message.chat_id, text=strings.start % (setuptools.botname, setuptools.botname)) + bot.sendMessage(chat_id=update.message.chat_id, text=strings.start % (setuptools.botname(), setuptools.botname())) 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) - bot.sendMessage(chat_id=update.message.chat_id, text=strings.unauth % setuptools.url) + bot.sendMessage(chat_id=update.message.chat_id, text=strings.unauth % setuptools.url()) updater.dispatcher.add_handler(telegram.ext.CommandHandler("start", start)) updater.dispatcher.add_handler(telegram.ext.CommandHandler("auth", auth))