(message: any)
| 249 | } |
| 250 | |
| 251 | function describeDocumentMessage(message: any): string { |
| 252 | const attributes = Array.isArray(message?.document?.attributes) |
| 253 | ? message.document.attributes |
| 254 | : []; |
| 255 | |
| 256 | if ( |
| 257 | attributes.some((attr: any) => attr instanceof Api.DocumentAttributeSticker) |
| 258 | ) { |
| 259 | return "[贴纸]"; |