Explorar el Código

Update chat_channel.py to support ReplyType.FILE

develop
befantasy GitHub hace 1 año
padre
commit
905532b681
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      channel/chat_channel.py

+ 1
- 1
channel/chat_channel.py Ver fichero

@@ -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))


Cargando…
Cancelar
Guardar