casa-bot/src/CasaBot/CasaBotApp/BotCommand.cs

12 lines
431 B
C#
Raw Normal View History

2025-03-26 15:41:39 -03:00
using System.Net.Mime;
using Telegram.Bots.Types;
namespace CasaBotApp;
public class BotCommand
{
public string Command { get; set; } = "/example";
public string Description { get; set; } = "Start the bot";
public Func<Message, string, Task<Response<TextMessage>>> Responder { get; set; } = (_, _) => Task.FromResult<Response<TextMessage>>(null);
public Func<TextMessage, BotCommand, Task>? Action { get; set; }
}