From 7129e20e31380d64b029a69fd7d3af883b215f54 Mon Sep 17 00:00:00 2001 From: Davte Date: Fri, 12 Jul 2019 14:23:21 +0200 Subject: [PATCH] function renamed to handler --- davtelepot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 2ff8fb8..4efe386 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -549,7 +549,7 @@ class Bot(TelegramBot, ObjectWithDatabase): text ).group(0) # Get the first group of characters matching pattern if command in self.commands: - replier = self.commands[command]['function'] + replier = self.commands[command]['handler'] elif 'chat' in update and update['chat']['id'] > 0: reply = self.unknown_command_message else: # Handle command aliases and text parsers