Files
telegram-bot/modules/ChatManagement/ChatManagement.cs

20 lines
561 B
C#

using BotFramework;
using Kruzya.TelegramBot.Core;
using Microsoft.Extensions.DependencyInjection;
using West.TelegramBot.ChatManagement.ParamParser;
using West.TelegramBot.ChatManagement.Service;
namespace West.TelegramBot.ChatManagement;
public class ChatManagement : Module
{
public ChatManagement(Core core) : base(core)
{
}
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<RulesService>();
services.AddTelegramBotParameterParser<BanLength.Param, BanLength.Parser>();
}
}