From ddc006a192fc7bed2167c27342d5da149475a7ac Mon Sep 17 00:00:00 2001 From: Davte Date: Tue, 16 Jul 2019 16:41:56 +0200 Subject: [PATCH] Property `unauthorized_message` was renamed --- davtelepot/bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/davtelepot/bot.py b/davtelepot/bot.py index c75241f..b5f522a 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -1380,7 +1380,7 @@ class Bot(TelegramBot, ObjectWithDatabase): ).parameters } ) - return self.unauthorized_message + return self.authorization_denied_message self.commands[command] = dict( handler=decorated_command_handler, description=description, @@ -1446,7 +1446,7 @@ class Bot(TelegramBot, ObjectWithDatabase): if name in inspect.signature(parser).parameters } ) - return bot.unauthorized_message + return bot.authorization_denied_message self.text_message_parsers[condition] = dict( handler=decorated_parser, description=description, @@ -1537,7 +1537,7 @@ class Bot(TelegramBot, ObjectWithDatabase): if name in inspect.signature(handler).parameters } ) - return bot.unauthorized_message + return bot.authorization_denied_message self.callback_handlers[prefix] = dict( handler=decorated_button_handler, description=description, @@ -1583,7 +1583,7 @@ class Bot(TelegramBot, ObjectWithDatabase): if name in inspect.signature(handler).parameters } ) - return self.unauthorized_message + return self.authorization_denied_message self.inline_query_handlers[condition] = dict( handler=decorated_query_handler, description=description,