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

        if message.get("elements"):
            await self.send_custom_message(recipient_id,
                                           message.get("elements"))

        if message.get("quick_replies"):
            await self.send_quick_replies(recipient_id,
                                          message.get("text"),
                                          message.get("quick_replies"))

        elif message.get("buttons"):
            await self.send_text_with_buttons(recipient_id,
                                              message.get("text"),
                                              message.get("buttons"))
        elif message.get("text"):
            await self.send_text_message(recipient_id,
                                         message.get("text"))

        # if there is an image we handle it separately as an attachment
        if message.get("image"):
            await self.send_image_url(recipient_id, message.get("image"))

        if message.get("attachment"):
            await self.send_attachment(recipient_id, message.get("attachment"))
Send a message to the client.
Send a message to the client.
Send a message to the client .
async def send_response(self, recipient_id: Text,
                            message: Dict[Text, Any]) -> None:
        if message.get("elements"):
            await self.send_custom_message(recipient_id,
                                           message.get("elements"))
        if message.get("quick_replies"):
            await self.send_quick_replies(recipient_id,
                                          message.get("text"),
                                          message.get("quick_replies"))
        elif message.get("buttons"):
            await self.send_text_with_buttons(recipient_id,
                                              message.get("text"),
                                              message.get("buttons"))
        elif message.get("text"):
            await self.send_text_message(recipient_id,
                                         message.get("text"))
        if message.get("image"):
            await self.send_image_url(recipient_id, message.get("image"))
        if message.get("attachment"):
            await self.send_attachment(recipient_id, message.get("attachment"))
async def send_response ( self , recipient_id : Text , message : Dict [ Text , Any ] ) -> None : if message . get ( "elements" ) : await self . send_custom_message ( recipient_id , message . get ( "elements" ) ) if message . get ( "quick_replies" ) : await self . send_quick_replies ( recipient_id , message . get ( "text" ) , message . get ( "quick_replies" ) ) elif message . get ( "buttons" ) : await self . send_text_with_buttons ( recipient_id , message . get ( "text" ) , message . get ( "buttons" ) ) elif message . get ( "text" ) : await self . send_text_message ( recipient_id , message . get ( "text" ) ) if message . get ( "image" ) : await self . send_image_url ( recipient_id , message . get ( "image" ) ) if message . get ( "attachment" ) : await self . send_attachment ( recipient_id , message . get ( "attachment" ) )
Send a message to the client.
Send a message to the client .
"""Send a message to the client.""" # if there is an image we handle it separately as an attachment
self
recipient_id
Text
message
Dict[Text, Any]