rasa/core/dispatcher.py
async def utter_button_template(self,
                                    template: Text,
                                    buttons: List[Dict[Text, Any]],
                                    tracker: 'DialogueStateTracker',
                                    silent_fail: bool = False,
                                    **kwargs: Any
                                    ) -> None:
        """Sends a message template with buttons to the output channel."""

        message = await self._generate_response(template,
                                                tracker,
                                                silent_fail,
                                                **kwargs)
        if not message:
            return

        if "buttons" not in message:
            message["buttons"] = buttons
        else:
            message["buttons"].extend(buttons)
        await self.utter_response(message)
Sends a message template with buttons to the output channel.
Sends a message template with buttons to the output channel.
Sends a message template with buttons to the output channel .
async def utter_button_template(self,
                                    template: Text,
                                    buttons: List[Dict[Text, Any]],
                                    tracker: 'DialogueStateTracker',
                                    silent_fail: bool = False,
                                    **kwargs: Any
                                    ) -> None:
        message = await self._generate_response(template,
                                                tracker,
                                                silent_fail,
                                                **kwargs)
        if not message:
            return
        if "buttons" not in message:
            message["buttons"] = buttons
        else:
            message["buttons"].extend(buttons)
        await self.utter_response(message)
async def utter_button_template ( self , template : Text , buttons : List [ Dict [ Text , Any ] ] , tracker : 'DialogueStateTracker' , silent_fail : bool = False , ** kwargs : Any ) -> None : message = await self . _generate_response ( template , tracker , silent_fail , ** kwargs ) if not message : return if "buttons" not in message : message [ "buttons" ] = buttons else : message [ "buttons" ] . extend ( buttons ) await self . utter_response ( message )
Sends a message template with buttons to the output channel.
Sends a message template with buttons to the output channel .
"""Sends a message template with buttons to the output channel."""
self
template
Text
buttons
List[Dict[Text, Any]]
tracker
'DialogueStateTracker'
silent_fail
bool
kwargs
Any