diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 60cf17d..34f0705 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -347,8 +347,10 @@ class Bot(TelegramBot, ObjectWithDatabase): If instance message is not set, class message is returned. """ if self._unknown_command_message: - return self._unknown_command_message - return self.__class__._unknown_command_message + message = self._unknown_command_message + else: + message = self.__class__._unknown_command_message + return message.format(bot=self) @property def callback_data_separator(self):