Quellcode durchsuchen

Update chat_channel.py to support ReplyType.FILE

develop
befantasy GitHub vor 1 Jahr
Ursprung
Commit
905532b681
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      channel/chat_channel.py

+ 1
- 1
channel/chat_channel.py Datei anzeigen

@@ -241,7 +241,7 @@ class ChatChannel(Channel):
reply.content = reply_text
elif reply.type == ReplyType.ERROR or reply.type == ReplyType.INFO:
reply.content = "[" + str(reply.type) + "]\n" + reply.content
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE:
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE or reply.type == ReplyType.FILE:
pass
else:
logger.error("[WX] unknown reply type: {}".format(reply.type))


Laden…
Abbrechen
Speichern