From 21d5b562f08193b5cabd059d6949d3b6b64e1be0 Mon Sep 17 00:00:00 2001 From: Sergey Nazarov Date: Fri, 22 Mar 2024 20:46:31 +0400 Subject: [PATCH] Add todos --- Directory.Packages.props | 2 +- .../Events/TextUpdateReceived.cs | 2 +- src/Nocr.TelegramListener.Host/Infrastructure/Startup.cs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 5f48273..b79ff1f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ 8.0.0 - + diff --git a/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs b/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs index bbd3d4c..3bbe619 100644 --- a/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs +++ b/src/Nocr.TelegramListener.Async.Api.Contracts/Events/TextUpdateReceived.cs @@ -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; } diff --git a/src/Nocr.TelegramListener.Host/Infrastructure/Startup.cs b/src/Nocr.TelegramListener.Host/Infrastructure/Startup.cs index 9a1d9ff..bea3933 100644 --- a/src/Nocr.TelegramListener.Host/Infrastructure/Startup.cs +++ b/src/Nocr.TelegramListener.Host/Infrastructure/Startup.cs @@ -41,6 +41,7 @@ public class Startup public void Configure(IApplicationBuilder app) { var bus = app.ApplicationServices.GetRequiredService(); - bus.Advanced.Topics.Subscribe("nocr.text.matcher").GetAwaiter().GetResult(); + // TODO: + bus.Advanced.Topics.Subscribe("nocr.text.matcher.matches").GetAwaiter().GetResult(); } } \ No newline at end of file