function renamed to handler

This commit is contained in:
Davte 2019-07-12 14:23:21 +02:00
parent e17b77490b
commit 7129e20e31

View File

@ -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