mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Code cleanup
This commit is contained in:
@@ -29,9 +29,10 @@ public class ContentStore : Module
|
||||
{
|
||||
services.AddOption<AllowNsfw>();
|
||||
|
||||
var kittiesConfig = Configuration.GetSection("KittiesService");
|
||||
services.AddHttpClient<IKittiesApi, KittiesApi>(c =>
|
||||
{
|
||||
var kittiesConfig = Configuration.GetSection("KittiesService");
|
||||
|
||||
c.BaseAddress = kittiesConfig.GetValue<Uri>("Uri");
|
||||
c.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
|
||||
"Bearer",
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Kruzya.TelegramBot.Core.Data;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using West.TelegramBot.ContentStore.API;
|
||||
using West.TelegramBot.ContentStore.API;
|
||||
using West.TelegramBot.ContentStore.Model;
|
||||
using West.TelegramBot.ContentStore.Option;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using West.TelegramBot.ContentStore.API;
|
||||
using West.TelegramBot.ContentStore.API;
|
||||
using West.TelegramBot.ContentStore.Model;
|
||||
using West.TelegramBot.ContentStore.Option;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Kruzya.TelegramBot.Core.Data;
|
||||
using Kruzya.TelegramBot.Core.Extensions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json;
|
||||
using Telegram.Bot.Types;
|
||||
using West.TelegramBot.ContentStore.Model;
|
||||
using West.TelegramBot.ContentStore.Option;
|
||||
|
||||
Reference in New Issue
Block a user