lib/bot/responder.rb in bot-0.0.20 vs lib/bot/responder.rb in bot-0.0.22
- old
+ new
@@ -39,11 +39,13 @@
text_response = {
'type' => 'text',
'to' => message['from'],
'body' => message_text,
'typeTime' => 0,
- 'chatId' => message['chatId']
}
+
+ text_response['chatId'] = message['chatId'] if message['chatId']
+
case suggested_responses
when Array
text_response['keyboards'] = [{
'type' => 'suggested',
'responses' => build_suggested_responses(suggested_responses)