Botas 0.3.6-alpha

This is a prerelease version of Botas.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Botas --version 0.3.6-alpha
                    
NuGet\Install-Package Botas -Version 0.3.6-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Botas" Version="0.3.6-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Botas" Version="0.3.6-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Botas" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Botas --version 0.3.6-alpha
                    
#r "nuget: Botas, 0.3.6-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Botas@0.3.6-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Botas&version=0.3.6-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Botas&version=0.3.6-alpha&prerelease
                    
Install as a Cake Tool

Botas The Bot App SDK

Lightweight library for building Microsoft Bot Framework bots — .NET / ASP.NET Core. A lightweight library for building Microsoft Teams bots in .NET / ASP.NET Core

What it does

  • Enables a chat experience in Teams, for personal, group, channel or meetings chats.
  • Secure inbound messages are dispatched to message handlers
  • Implement rich UX in chats using AdaptiveCards, Suggested Actions, Collect feedback and more
  • Secure outbound messages using standard Entra Application Tokens

Installation

dotnet add package Botas

Quick start

using Botas;

var app = BotApp.Create(args);

app.On("message", async (ctx, ct) =>
{
    await ctx.SendAsync($"You said: {ctx.Activity.Text}", ct);
});

app.Run();

Configure the App Credentials

You can configure the bot app credentials using the appSettings.json or overrid with env vars from launchSettings.json:

appSettings.json
// copy to outdir
{
  "$schema": "https://json.schemastore.org/appsettings.json",
  "AzureAd": {
    "Instance": "https://login.microsoftonline.com/",
    "TenantId": "<your-tenant-id>",
    "ClientId": "<your-bot-app-id>",
    "ClientCredentials": [
      {
        "SourceType": "ClientSecret",
        "ClientSecret": "<your-client-secret>"
      }
    ]
  }
}
launchSettings.json
{
  "$schema": "https://json.schemastore.org/launchsettings.json",
  "profiles": {
    "local": {
      "commandName": "Project",
      "launchBrowser": false,
      "applicationUrl": "http://localhost:3978",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development",
        "AzureAd__Instance": "https://login.microsoftonline.com/",
        "AzureAd__TenantId": "<your-tenant-id>",
        "AzureAd__ClientId": "<your-bot-app-id>",
        "AzureAd__ClientCredentials__0__SourceType": "",
        "AzureAd__ClientCredentials__0__ClientSecret": "<your-client-secret>",
      }
    }
  }
 }
env vars
AzureAd__Instance=https://login.microsoftonline.com/
AzureAd__ClientId="<your-bot-app-id>"
AzureAd__TenantId="<your-tenant-id>"
AzureAd__ClientCredentials__0__SourceType="ClientSecret"
AzureAd__ClientCredentials__0__ClientSecret="<your-client-secret>"

💡 Tip: You can configure your app with any of the credentials supported by MSAL see calling Downstream APIs docs.

Documentation

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.25-alpha 0 4/23/2026
0.3.18-alpha 38 4/22/2026
0.3.6-alpha 38 4/22/2026
0.2.3-beta 51 4/17/2026
0.1.80 55 4/14/2026
0.1.77 67 4/14/2026
0.1.73 57 4/14/2026
0.1.70 59 4/14/2026
0.1.69 56 4/14/2026