BotController Class
- java.
lang. Object - com.
microsoft. bot. integration. spring. BotController
- com.
public class BotController
This is the default controller that will receive incoming Channel Activity messages.
This controller is suitable in most cases. Bots that want to use this controller should do so by using the @Import(\{BotController.class\}) annotation. See any of the samples Application class for an example.
Constructor Summary
| Constructor | Description |
|---|---|
| BotController(BotFrameworkHttpAdapter withAdapter, Bot withBot) |
Spring will use this constructor for creation. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.concurrent.CompletableFuture<org.springframework.http.ResponseEntity<java.lang.Object>> |
incoming(Activity activity, String authHeader)
This will receive incoming Channel Activities. |
Methods inherited from java.lang.Object
Constructor Details
BotController
public BotController(BotFrameworkHttpAdapter withAdapter, Bot withBot)
Spring will use this constructor for creation.
The Bot application should define class that implements Bot and annotate it with @Component.
Parameters:
Method Details
incoming
public CompletableFuture
This will receive incoming Channel Activities.
Parameters:
Returns: