fix sending updates from MessageHandler
This commit is contained in:
@@ -290,7 +290,7 @@ class XMPPTelegram(ComponentXMPP):
|
||||
|
||||
if is_command:
|
||||
command = msg["body"].split(" ")[0][1:]
|
||||
handler = GateCommandHandler(msg)._handler
|
||||
handler = GateCommandHandler(msg, self)._handler
|
||||
try:
|
||||
reply = str(handler(self))
|
||||
except Exception as e:
|
||||
@@ -317,7 +317,7 @@ class XMPPTelegram(ComponentXMPP):
|
||||
|
||||
if is_command:
|
||||
command = msg["body"].split(" ")[0][1:]
|
||||
handler = ChatCommandHandler(msg)._handler
|
||||
handler = ChatCommandHandler(msg, self)._handler
|
||||
try:
|
||||
reply = str(handler(self))
|
||||
except Exception as e:
|
||||
@@ -344,7 +344,7 @@ class XMPPTelegram(ComponentXMPP):
|
||||
|
||||
if is_command:
|
||||
command = msg["body"].split(" ")[0][1:]
|
||||
handler = GroupchatCommandHandler(msg)._handler
|
||||
handler = GroupchatCommandHandler(msg), self._handler
|
||||
try:
|
||||
reply = str(handler(self))
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user