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

20 lines
561 B
C#
Raw Normal View History

using BotFramework;
using Kruzya.TelegramBot.Core;
2022-04-21 17:42:44 +03:00
using Microsoft.Extensions.DependencyInjection;
using West.TelegramBot.ChatManagement.ParamParser;
2022-04-21 17:42:44 +03:00
using West.TelegramBot.ChatManagement.Service;
2021-12-26 13:15:07 +02:00
namespace West.TelegramBot.ChatManagement;
public class ChatManagement : Module
2021-12-26 13:15:07 +02:00
{
public ChatManagement(Core core) : base(core)
2021-12-26 13:15:07 +02:00
{
}
2022-04-21 17:42:44 +03:00
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<RulesService>();
services.AddTelegramBotParameterParser<BanLength.Param, BanLength.Parser>();
2022-04-21 17:42:44 +03:00
}
2021-12-26 13:15:07 +02:00
}