Queer European MD passionate about IT
浏览代码

function renamed to handler

Davte 5 年之前
父节点
当前提交
7129e20e31
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      davtelepot/bot.py

+ 1 - 1
davtelepot/bot.py

@@ -549,7 +549,7 @@ class Bot(TelegramBot, ObjectWithDatabase):
                 text
                 text
             ).group(0)  # Get the first group of characters matching pattern
             ).group(0)  # Get the first group of characters matching pattern
             if command in self.commands:
             if command in self.commands:
-                replier = self.commands[command]['function']
+                replier = self.commands[command]['handler']
             elif 'chat' in update and update['chat']['id'] > 0:
             elif 'chat' in update and update['chat']['id'] > 0:
                 reply = self.unknown_command_message
                 reply = self.unknown_command_message
         else:  # Handle command aliases and text parsers
         else:  # Handle command aliases and text parsers