mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
21 lines
557 B
C#
21 lines
557 B
C#
using Kruzya.TelegramBot.CombotAntiSpam.Combot;
|
|
using Kruzya.TelegramBot.Core;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
|
|
namespace Kruzya.TelegramBot.CombotAntiSpam;
|
|
|
|
public class CombotAntiSpam : Module
|
|
{
|
|
public CombotAntiSpam(Core.Core core) : base(core)
|
|
{
|
|
}
|
|
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddHttpClient<ICombotClient, CombotClient>(c =>
|
|
{
|
|
c.BaseAddress = new Uri("https://api.cas.chat/check");
|
|
});
|
|
}
|
|
} |