Add ability for poll author to terminate a poll

This commit is contained in:
yash-signal
2025-11-10 13:18:31 -06:00
committed by GitHub
parent 30548a6a3c
commit d328b45a28
39 changed files with 897 additions and 89 deletions

5
ts/model-types.d.ts vendored
View File

@@ -166,6 +166,7 @@ type MessageType =
| 'keychange'
| 'outgoing'
| 'phone-number-discovery'
| 'poll-terminate'
| 'profile-change'
| 'story'
| 'timer-notification'
@@ -212,6 +213,10 @@ export type MessageAttributesType = {
quote?: QuotedMessageType;
reactions?: ReadonlyArray<MessageReactionType>;
poll?: PollMessageAttribute;
pollTerminateNotification?: {
question: string;
pollMessageId: string;
};
requiredProtocolVersion?: number;
sms?: boolean;
sourceDevice?: number;