Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
fixes bug where button message text is set to None
Browse files Browse the repository at this point in the history
  • Loading branch information
amn41 committed Dec 21, 2017
1 parent ed088b0 commit 92b34ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_core/dispatcher.py
Expand Up @@ -82,7 +82,7 @@ def utter_custom_message(self, *elements):
def utter_button_message(self, text, buttons, **kwargs):
# type: (Text, List[Dict[Text, Any]], **Any) -> None
"""Sends a message with buttons to the output channel."""
self.latest_bot_messages.append(BotMessage(text=None,
self.latest_bot_messages.append(BotMessage(text=text,
data={"buttons": buttons}))
self.output_channel.send_text_with_buttons(self.sender_id, text, buttons,
**kwargs)
Expand Down

0 comments on commit 92b34ea

Please sign in to comment.