fix(api): distinguish a deleted reply target from no reply (#1884)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-24 12:39:11 +02:00
1 parent 7b646f891e
commit 735ecc1cca
8 files changed
+250 -181

No files matched your search

@@ -169,7 +169,7 @@ export interface MessageResponse extends MessageBaseResponse {
export const MessageResponseSchema = MessageBaseResponseSchema.extend({
referenced_message: MessageBaseResponseSchema.nullish().describe(
'The message that this message is replying to or forwarding',
'The reply target. Present and populated when the target resolved, present and null when the target is gone, absent when this message carries no default reference. Clients must tell null apart from absent by key presence.',
),
});
const ChannelPinMessageResponse = MessageResponseSchema.omit({