Class ReactionContext
- Namespace
- Signal.Application.Reactions
- Assembly
- Signal.Application.dll
Everything about a reaction that triggered an OnReactionAttribute method.
public sealed class ReactionContext
- Inheritance
-
ReactionContext
- Inherited Members
Constructors
ReactionContext(MessageContext, Reaction)
Everything about a reaction that triggered an OnReactionAttribute method.
public ReactionContext(MessageContext message, Reaction reaction)
Parameters
messageMessageContextThe message context of the reaction envelope.
reactionReactionThe reaction.
Properties
Account
The receiving account.
public PhoneNumber Account { get; }
Property Value
CancellationToken
Cancelled when the host shuts down.
public CancellationToken CancellationToken { get; }
Property Value
Conversation
The conversation of the reaction (group or direct chat).
public Recipient Conversation { get; }
Property Value
Message
The pipeline context of the reaction envelope.
public MessageContext Message { get; }
Property Value
Reaction
The reaction: emoji, target author and timestamp, and whether it was removed.
public Reaction Reaction { get; }
Property Value
Sender
Who reacted.
public Sender Sender { get; }
Property Value
Services
The message's scoped services.
public IServiceProvider Services { get; }
Property Value
Methods
ReplyAsync(string)
Sends a text into the conversation of the reaction.
public Task<SendResult> ReplyAsync(string text)
Parameters
textstringThe text.
Returns
- Task<SendResult>
The send result.