IReceivedMessageHandler
Namespace: Signal.Bot
Full Name: Signal.Bot.IReceivedMessageHandler
Summary
Defines the contract for handling incoming Signal messages and errors during polling operations.
Methods
HandleAsync
csharp
HandleAsync(client, messageEnvelope, cancellationToken)Handles an incoming Signal message received from the polling mechanism.
Parameters:
client- TheISignalBotClientinstance that received the message.messageEnvelope- TheReceivedMessageEnvelopecontaining the message data and metadata.cancellationToken- ACancellationTokento observe for cancellation requests.
Returns: A Task representing the asynchronous operation.
HandleErrorAsync
csharp
HandleErrorAsync(client, error, cancellationToken)Handles errors that occur during message polling or processing.
Parameters:
client- TheISignalBotClientinstance where the error occurred.error- TheErrorcontaining details about the error that occurred.cancellationToken- ACancellationTokento observe for cancellation requests.
Returns: A Task representing the asynchronous error handling operation.
