Add todos

This commit is contained in:
Sergey Nazarov 2024-03-22 20:46:31 +04:00
parent 88981faa31
commit 21d5b562f0
3 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<MicrosoftVersion>8.0.0</MicrosoftVersion>
</PropertyGroup>
<ItemGroup Label="Nocr">
<PackageVersion Include="Nocr.TextMatcher.Async.Api.Contracts" Version="0.4.1" />
<PackageVersion Include="Nocr.TextMatcher.Async.Api.Contracts" Version="0.4.4" />
</ItemGroup>
<ItemGroup Label="Telegram">
<PackageVersion Include="WTelegramClient" Version="3.7.1" />

View File

@ -9,7 +9,7 @@ public sealed class MessageReceived : IEvent
public long From { get; set; }
public long ChatId { get; set; }
public string ChatUsername { get; set; } = default!;
public DateTimeOffset OccuredDateTime { get; set; }

View File

@ -41,6 +41,7 @@ public class Startup
public void Configure(IApplicationBuilder app)
{
var bus = app.ApplicationServices.GetRequiredService<IBus>();
bus.Advanced.Topics.Subscribe("nocr.text.matcher").GetAwaiter().GetResult();
// TODO:
bus.Advanced.Topics.Subscribe("nocr.text.matcher.matches").GetAwaiter().GetResult();
}
}