Initial Poll message receive support

This commit is contained in:
yash-signal
2025-09-18 11:06:43 -05:00
committed by GitHub
parent 976a3135e5
commit 93ae2a4c48
15 changed files with 1072 additions and 6 deletions

View File

@@ -185,6 +185,23 @@ export type ProcessedReaction = {
targetTimestamp?: number;
};
export type ProcessedPollCreate = {
question?: string;
options?: Array<string>;
allowMultiple?: boolean;
};
export type ProcessedPollVote = {
targetAuthorAci?: AciString;
targetTimestamp?: number;
optionIndexes?: Array<number>;
voteCount?: number;
};
export type ProcessedPollTerminate = {
targetTimestamp?: number;
};
export type ProcessedDelete = {
targetSentTimestamp?: number;
};
@@ -226,6 +243,9 @@ export type ProcessedDataMessage = {
isStory?: boolean;
isViewOnce: boolean;
reaction?: ProcessedReaction;
pollCreate?: ProcessedPollCreate;
pollVote?: ProcessedPollVote;
pollTerminate?: ProcessedPollTerminate;
delete?: ProcessedDelete;
bodyRanges?: ReadonlyArray<ProcessedBodyRange>;
groupCallUpdate?: ProcessedGroupCallUpdate;