Documentation - v1.2.0-alpha.3
    Preparing search index...

    A set of utility functions to assist with the formatting a 'message' activity containing a list of choices.

    Index

    Constructors

    Properties

    MAX_ACTION_TITLE_LENGTH: 20

    Methods

    • Returns a 'message' activity containing a list of choices that has been automatically formatted based on the capabilities of a given channel.

      Parameters

      • channelOrContext: string | TurnContext

        Channel ID or context object for the current turn of conversation.

      • choices: (string | Choice)[]

        List of choices to render.

      • Optionaltext: string

        (Optional) text of the message.

      • Optionalspeak: string

        (Optional) SSML to speak for the message.

      • Optionaloptions: ChoiceFactoryOptions

        (Optional) formatting options to use when rendering as a list.

      • OptionalconversationType: string

        (Optional) the type of the conversation.

      Returns Activity

      The created message activity.

    • Returns a 'message' activity that includes a list of choices that have been added as HeroCard's.

      Parameters

      • choices: (string | Choice)[]

        List of choices to render.

      • Optionaltext: string

        (Optional) Text of the message.

      • Optionalspeak: string

        (Optional) SSML to speak for the message.

      Returns Activity

      The created message activity with choices as a HeroCard with buttons.

    • Returns a 'message' activity containing a list of choices that has been formatted as suggested actions.

      Parameters

      • choices: (string | Choice)[]

        List of choices to render.

      • Optionaltext: string

        (Optional) Text of the message.

      • Optionalspeak: string

        (Optional) SSML to speak for the message.

      Returns Activity

      The created message activity.