ReceiverOptionsBuilder
Namespace: Signal.Bot
Full Name: Signal.Bot.ReceiverOptionsBuilder
Summary
Provides a fluent interface for constructing ReceiverOptions with configurable polling behavior.
Methods
WithTimeout
WithTimeout(timeout)Sets the timeout duration for polling requests.
Parameters:
timeout- The maximum time to wait for new messages during polling.
Returns: The builder instance for method chaining.
WithIgnoreAttachments
WithIgnoreAttachments(ignoreAttachments)Sets whether to ignore message attachments during polling.
Parameters:
ignoreAttachments- If true, attachments will not be downloaded or processed.
Returns: The builder instance for method chaining.
WithIgnoreStories
WithIgnoreStories(ignoreStories)Sets whether to ignore Signal stories during polling.
Parameters:
ignoreStories- If true, story updates will not be received or processed.
Returns: The builder instance for method chaining.
WithIgnoreTyping
WithIgnoreTyping(ignoreTyping)Sets whether to ignore typing indicator messages.
Parameters:
ignoreTyping- If true, typing indicators will not be received or processed. Default is true.
Returns: The builder instance for method chaining.
WithIgnoreReceipt
WithIgnoreReceipt(ignoreReceipt)Sets whether to ignore read receipt messages.
Parameters:
ignoreReceipt- If true, read receipts will not be received or processed. Default is true.
Returns: The builder instance for method chaining.
WithIgnoreSync
WithIgnoreSync(ignoreSync)Sets whether to ignore sync messages from linked devices.
Parameters:
ignoreSync- If true, sync messages from other devices will not be received or processed. Default is true.
Returns: The builder instance for method chaining.
WithMaxMessages
WithMaxMessages(maxMessages)Sets the maximum number of messages to retrieve in a single polling request.
Parameters:
maxMessages- The maximum number of messages per poll. Must be greater than 0.
Returns: The builder instance for method chaining.
WithReadReceipts
WithReadReceipts(readReceipts)Sets whether to automatically send read receipts for received messages.
Parameters:
readReceipts- If true, read receipts will be sent automatically when messages are processed.
Returns: The builder instance for method chaining.
