mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
20 lines
561 B
C#
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>();
|
|
}
|
|
} |