botas-core
    Preparing search index...

    Class CoreActivityBuilder

    Fluent builder for constructing outbound activities.

    const reply = new CoreActivityBuilder()
    .withConversationReference(incomingActivity)
    .withText('Hello!')
    .build()
    Index

    Constructors

    Methods

    • Copy routing fields from an incoming activity and swap from/recipient. Sets serviceUrl, conversation, from (← source recipient), and recipient (← source from).

      Parameters

      • source: CoreActivity

        The incoming activity to copy routing fields from.

      Returns this

      this for method chaining.

    • Set the service URL for the channel.

      Parameters

      • serviceUrl: string

        Bot Service service URL.

      Returns this

      this for method chaining.