try:
msgB64Bytes = line.rstrip("\n").encode("UTF-8")
msgBytes = base64.b64decode(msgB64Bytes)
+ msgStr = msgBytes.decode("UTF-8")
except:
self._log(logging.WARNING, "Error decoding message")
continue
message_type="m.room.message",
content={
"msgtype": "m.text",
- "body": msgBytes.decode("UTF-8")
+ "body": msgStr
}
)
else: