Queer European MD passionate about IT
Explorar o código

function renamed to handler

Davte %!s(int64=5) %!d(string=hai) anos
pai
achega
7129e20e31
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      davtelepot/bot.py

+ 1 - 1
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