zaileys 4.11.0 → 4.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,6 +126,8 @@ export declare class Client extends TypedEventEmitter<ClientEventMap> {
126
126
  use(middleware: Middleware): this;
127
127
  unuse(middleware: Middleware): this;
128
128
  private attachCommandsIfReady;
129
+ /** Replies inherit the quoted message's disappearing timer, so an answer never outlives its thread. */
130
+ private replyWithSameLifetime;
129
131
  /** Admin lookup for the `admin` guard. Never throws — an unreachable group means "not an admin". */
130
132
  private isGroupAdmin;
131
133
  private buildCommandContext;
@@ -20,6 +20,11 @@ export interface DecodeContext {
20
20
  reply?: (target: string, content: string, opts: TextOptions | undefined, quoted: WAMessage) => Promise<WAMessageKey>;
21
21
  react?: (key: WAMessageKey, emoji: string) => Promise<WAMessageKey>;
22
22
  }
23
+ /**
24
+ * The disappearing timer a reply must copy. Without it WhatsApp flags the answer as one that will
25
+ * not disappear, leaving it behind in a chat whose other messages are gone.
26
+ */
27
+ export declare const ephemeralExpirationOf: (msg: WAMessage) => number | undefined;
23
28
  export declare const rawMentionsOf: (msg: WAMessage) => string[];
24
29
  export declare const decodeMessage: (msg: WAMessage, ctx: DecodeContext) => MessageContext | null;
25
30
  export declare const decodeText: (msg: WAMessage, ctx: DecodeContext) => MessageContext | null;