From 3f9e2a229ca0fbbe440084a909933eb2f824a02c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 18 Mar 2019 09:44:30 +0100 Subject: [PATCH] Bugfix in telegram.py --- royalnet/bots/telegram.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/royalnet/bots/telegram.py b/royalnet/bots/telegram.py index 4d4087d1..b37e3667 100644 --- a/royalnet/bots/telegram.py +++ b/royalnet/bots/telegram.py @@ -1,7 +1,6 @@ import telegram import asyncio import typing -import multiprocessing from ..commands import NullCommand from ..utils import asyncify, Call, Command from ..network import RoyalnetLink, Message @@ -71,7 +70,7 @@ class TelegramBot: command_text.replace(f"@{self.bot.username}", "") # Find the function try: - command = self._commands[command_text] + command = self.commands[command_text] except KeyError: # Skip inexistent commands command = self.missing_command