debugging

This commit is contained in:
2019-03-10 17:23:58 +01:00
parent 2ea7c29c64
commit 8ddb946b33

View File

@@ -166,6 +166,10 @@ class XMPPTelegram(ComponentXMPP):
# detect media
logging.debug("test")
logging.debug(msg.__dict__)
if "oob" in msg:
logging.debug("Found OOB content in message")
if "url" in msg['oob']:
@@ -190,7 +194,7 @@ class XMPPTelegram(ComponentXMPP):
#self.send_message(mto=iq['from'], mfrom=iq['to'], mtype='chat', mbody='[Your MID:{}]'.format(msg_id))
def event_presence_unsub(self, presence):
return
return
def event_presence(self, presence):
"""