Skip to content

Commit

Permalink
update webhook config
Browse files Browse the repository at this point in the history
  • Loading branch information
azhe403 committed Oct 12, 2024
1 parent d000725 commit e7b29fd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<BaseOutputPath>.bin\</BaseOutputPath>
</PropertyGroup>
<PropertyGroup>
<Version>224.10.9051.14899</Version>
<Version>224.10.9051.16464</Version>
<Company>AZ Corp</Company>
<Authors>azhe403</Authors>
<Product>ZiziBot</Product>
Expand Down
1 change: 1 addition & 0 deletions backend/ZiziBot.Application/ZiziBot.Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\lib\ZiziBot.TelegramBot\ZiziBot.TelegramBot.Framework\ZiziBot.TelegramBot.Framework.csproj"/>
<ProjectReference Include="..\ZiziBot.Exceptions\ZiziBot.Exceptions.csproj" />
<ProjectReference Include="..\ZiziBot.Parsers\ZiziBot.Parsers.csproj" />
<ProjectReference Include="..\ZiziBot.DataSource\ZiziBot.DataSource.csproj" />
Expand Down
1 change: 1 addition & 0 deletions backend/ZiziBot.Contracts/Configs/EngineConfig.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.ComponentModel;
using ZiziBot.TelegramBot.Framework.Models.Enums;

namespace ZiziBot.Contracts.Configs;

Expand Down
8 changes: 0 additions & 8 deletions backend/ZiziBot.Contracts/Enums/BotEngineMode.cs

This file was deleted.

1 change: 1 addition & 0 deletions backend/ZiziBot.Contracts/ZiziBot.Contracts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\lib\ZiziBot.TelegramBot\ZiziBot.TelegramBot.Framework\ZiziBot.TelegramBot.Framework.csproj"/>
<ProjectReference Include="..\ZiziBot.Attributes\ZiziBot.Attributes.csproj"/>
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task SearchApiDoc(CommandData data)
await mediatorService.EnqueueAsync(new AnswerInlineQueryApiDocBotRequestModel() {
BotToken = data.BotToken,
InlineQuery = data.InlineQuery,
Query = data.InlineQuery.Query.GetInlineQueryAt<string>(1)
Query = data.InlineQueryQueryParam
});
}

Expand Down
2 changes: 2 additions & 0 deletions backend/ZiziBot.TelegramBot/TelegramExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public static IServiceCollection ConfigureTelegramBot(this IServiceCollection se
.ToList();

services.AddZiziBotTelegramBot(new BotEngineConfig() {
EngineMode = config.TelegramEngineMode,
WebhookUrl = EnvUtil.GetEnv(Env.WEB_CONSOLE_URL),
Bot = listBotData.Select(x => new BotTokenConfig() {
Name = x.Name,
Token = x.Token
Expand Down

0 comments on commit e7b29fd

Please sign in to comment.