rasa/core/channels/socketio.py
async def send_text_with_buttons(self, recipient_id: Text, text: Text,
                                     buttons: List[Dict[Text, Any]],
                                     **kwargs: Any) -> None:
        """Sends buttons to the output."""

        message = {
            "text": text,
            "quick_replies": []
        }

        for button in buttons:
            message["quick_replies"].append({
                "content_type": "text",
                "title": button['title'],
                "payload": button['payload']
            })

        await self._send_message(self.sid, message)
Sends buttons to the output.
Sends buttons to the output.
Sends buttons to the output .
async def send_text_with_buttons(self, recipient_id: Text, text: Text,
                                     buttons: List[Dict[Text, Any]],
                                     **kwargs: Any) -> None:
        message = {
            "text": text,
            "quick_replies": []
        }
        for button in buttons:
            message["quick_replies"].append({
                "content_type": "text",
                "title": button['title'],
                "payload": button['payload']
            })
        await self._send_message(self.sid, message)
async def send_text_with_buttons ( self , recipient_id : Text , text : Text , buttons : List [ Dict [ Text , Any ] ] , ** kwargs : Any ) -> None : message = { "text" : text , "quick_replies" : [ ] } for button in buttons : message [ "quick_replies" ] . append ( { "content_type" : "text" , "title" : button [ 'title' ] , "payload" : button [ 'payload' ] } ) await self . _send_message ( self . sid , message )
Sends buttons to the output.
Sends buttons to the output .
"""Sends buttons to the output."""
self
recipient_id
Text
text
Text
buttons
List[Dict[Text, Any]]
kwargs
Any