Commit ae76761a86d7916e91bea2fbc2e79911541534d7
1 parent
8bc7350a5b
Exists in
master
forward direct reply
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
index.js
... | ... | @@ -146,6 +146,9 @@ function forwardMessageToEvo(sender, message, ts) { |
146 | 146 | return; |
147 | 147 | } |
148 | 148 | logger.info('Evo response in xml format', {response: parsedResponse}); |
149 | + if (parsedResponse.text) { | |
150 | + sendMessage(sender, parsedResponse.text[0].trim()); | |
151 | + } | |
149 | 152 | }); |
150 | 153 | |
151 | 154 |