Property unauthorized_message was renamed

This commit is contained in:
Davte 2019-07-16 16:41:56 +02:00
parent 434d09c317
commit ddc006a192

View File

@ -1380,7 +1380,7 @@ class Bot(TelegramBot, ObjectWithDatabase):
).parameters ).parameters
} }
) )
return self.unauthorized_message return self.authorization_denied_message
self.commands[command] = dict( self.commands[command] = dict(
handler=decorated_command_handler, handler=decorated_command_handler,
description=description, description=description,
@ -1446,7 +1446,7 @@ class Bot(TelegramBot, ObjectWithDatabase):
if name in inspect.signature(parser).parameters if name in inspect.signature(parser).parameters
} }
) )
return bot.unauthorized_message return bot.authorization_denied_message
self.text_message_parsers[condition] = dict( self.text_message_parsers[condition] = dict(
handler=decorated_parser, handler=decorated_parser,
description=description, description=description,
@ -1537,7 +1537,7 @@ class Bot(TelegramBot, ObjectWithDatabase):
if name in inspect.signature(handler).parameters if name in inspect.signature(handler).parameters
} }
) )
return bot.unauthorized_message return bot.authorization_denied_message
self.callback_handlers[prefix] = dict( self.callback_handlers[prefix] = dict(
handler=decorated_button_handler, handler=decorated_button_handler,
description=description, description=description,
@ -1583,7 +1583,7 @@ class Bot(TelegramBot, ObjectWithDatabase):
if name in inspect.signature(handler).parameters if name in inspect.signature(handler).parameters
} }
) )
return self.unauthorized_message return self.authorization_denied_message
self.inline_query_handlers[condition] = dict( self.inline_query_handlers[condition] = dict(
handler=decorated_query_handler, handler=decorated_query_handler,
description=description, description=description,