feat(core): collapsible quotes

This commit is contained in:
alina 🌸 2024-06-01 16:06:36 +03:00
parent 260e87a5f8
commit 9fd2aa85f2
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -39,10 +39,10 @@ export type MessageEntityParams =
| 'strikethrough'
| 'spoiler'
| 'code'
| 'blockquote'
| 'bank_card'
| 'unknown'
}
| { kind: 'blockquote'; collapsible: boolean }
| { kind: 'pre'; language?: string }
| { kind: 'text_link'; url: string }
| { kind: 'text_mention'; userId: number }
@ -125,7 +125,7 @@ export class MessageEntity {
case 'messageEntityMentionName':
return { kind: 'text_mention', userId: this.raw.userId }
case 'messageEntityBlockquote':
return { kind: 'blockquote' }
return { kind: 'blockquote', collapsible: this.raw.collapsed! }
case 'messageEntityCustomEmoji':
return { kind: 'emoji', emojiId: this.raw.documentId }
case 'messageEntityBankCard':