Skip to content

Commit a750ad5

Browse files
author
Igor Evdokimov
committed
- no swagger for sample bots
1 parent 7481b77 commit a750ad5

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

Samples/TelegramCommandChainSample/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using MessagingSample.Common.Commands.Processors;
1010
using NLog.Extensions.Logging;
1111
using Telegram.Bot.Types.ReplyMarkups;
12-
using TelegramCommandChainSample;
1312
using TelegramCommandChainSample.Commands;
1413
using TelegramCommandChainSample.Commands.CommandProcessors;
1514

Samples/TelegramMessagingSample/Program.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,10 @@
2929
.AddProcessor<StopCommandProcessor<ReplyMarkupBase>>()
3030
.AddValidator<PassValidator<StopCommand>>();
3131

32-
builder.Services.AddEndpointsApiExplorer()
33-
.AddSwaggerGen();
34-
3532
var app = builder.Build();
36-
app.Services.RegisterBotCommand<StartCommand, StartCommandProcessor<ReplyMarkupBase>, TelegramBot>()
33+
app.Services
34+
.RegisterBotCommand<StartCommand, StartCommandProcessor<ReplyMarkupBase>, TelegramBot>()
3735
.RegisterProcessor<StopCommandProcessor<ReplyMarkupBase>>()
3836
.RegisterProcessor<InfoCommandProcessor<ReplyMarkupBase>>();
3937

40-
if (app.Environment.IsDevelopment())
41-
{
42-
app.UseSwagger();
43-
app.UseSwaggerUI();
44-
}
45-
4638
app.Run();

Samples/TelegramMessagingSample/TelegramMessagingSample.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
2020
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.14"/>
21-
<PackageReference Include="Swashbuckle" Version="5.6.0" />
22-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
23-
<PackageReference Include="Swashbuckle.Core" Version="5.6.0" />
2421
</ItemGroup>
2522

2623
<ItemGroup>

0 commit comments

Comments
 (0)