Version: 3.x

rasa.core.channels.botframework

BotFramework Objects

class BotFramework(OutputChannel)

A Microsoft Bot Framework communication channel.

BotFrameworkInput Objects

class BotFrameworkInput(InputChannel)

Bot Framework input channel implementation.

__init__

def __init__(app_id: Text, app_password: Text) -> None

Create a Bot Framework input channel.

Arguments:

  • app_id - Bot Framework's API id
  • app_password - Bot Framework application secret

add_attachments_to_metadata

@staticmethod
def add_attachments_to_metadata(
postdata: Dict[Text, Any],
metadata: Optional[Dict[Text, Any]]) -> Optional[Dict[Text, Any]]

Merge the values of postdata['attachments'] with metadata.

blueprint

def blueprint(
on_new_message: Callable[[UserMessage], Awaitable[Any]]) -> Blueprint

Defines the Sanic blueprint for the bot framework integration.