rasa/core/dispatcher.py
async def utter_response(self, message: Dict[Text, Any]) -> None:
        """Send a message to the client."""

        bot_message = BotMessage(text=message.get("text"),
                                 data={"elements": message.get("elements"),
                                       "buttons": message.get("buttons"),
                                       "attachment": message.get("image")})

        self.latest_bot_messages.append(bot_message)
        await self.output_channel.send_response(self.sender_id, message)
Send a message to the client.
Send a message to the client.
Send a message to the client .
async def utter_response(self, message: Dict[Text, Any]) -> None:
        bot_message = BotMessage(text=message.get("text"),
                                 data={"elements": message.get("elements"),
                                       "buttons": message.get("buttons"),
                                       "attachment": message.get("image")})
        self.latest_bot_messages.append(bot_message)
        await self.output_channel.send_response(self.sender_id, message)
async def utter_response ( self , message : Dict [ Text , Any ] ) -> None : bot_message = BotMessage ( text = message . get ( "text" ) , data = { "elements" : message . get ( "elements" ) , "buttons" : message . get ( "buttons" ) , "attachment" : message . get ( "image" ) } ) self . latest_bot_messages . append ( bot_message ) await self . output_channel . send_response ( self . sender_id , message )
Send a message to the client.
Send a message to the client .
"""Send a message to the client."""
self
message
Dict[Text, Any]