From 2c6a2f6c6ea965e48e6692040de537f4f95603a8 Mon Sep 17 00:00:00 2001 From: Sergey Nazarov Date: Mon, 15 Apr 2024 17:02:28 +0300 Subject: [PATCH] Update telegram-listener contracts --- Directory.Packages.props | 2 +- .../EventHandlers/MessageReceivedHandler.cs | 1 + .../TextSubscriptionMatched.cs | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index d8d9a55..e4fede4 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ 8.0.0 - + diff --git a/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs b/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs index 4e43982..4b6a8fa 100644 --- a/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs +++ b/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs @@ -42,6 +42,7 @@ public sealed class MessageReceivedHandler : IHandleMessages SubscriptionId = match.Id, SubscriptionUserId = match.UserId, ChatUsername = match.ChatUsername, + MessageId = message.MessageId, Rule = match.Rule, Template = match.Template, Text = message.Text, diff --git a/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs b/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs index 7fcfbfc..819beb8 100644 --- a/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs +++ b/src/Nocr.TextMatcher.Async.Api.Contracts/TextSubscriptionMatched.cs @@ -21,6 +21,11 @@ public class TextSubscriptionMatched : IEvent /// public string ChatUsername { get; set; } + /// + /// Идентификатор сообщения + /// + public long MessageId { get; set; } + /// /// Правило совпадения ///