using Microsoft.Teams.Apps.Activities;
using Microsoft.Teams.Apps.Extensions;
using Microsoft.Teams.Plugins.AspNetCore.Extensions;

var builder = WebApplication.CreateBuilder(args);
builder.AddTeams();
var app = builder.Build();
var teams = app.UseTeams();

teams.OnActivity(async context =>
{
    context.Log.Info(context.AppId);
    await context.Next();
});

teams.OnMessage(async context =>
{
    context.Log.Info("hit!");
    await context.Typing();
    await context.Send($"you said '{context.Activity.Text}'");
});

app.Run();