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; } + /// /// Правило совпадения ///