(
messageId: string,
index: number,
opts: { inline?: boolean } = {},
explicitAddress?: string,
)
| 221 | // getAttachment (§6a #5): metadata + a short-lived download_url for one |
| 222 | // attachment. inline:true also returns base64 `data` for small attachments. |
| 223 | getAttachment( |
| 224 | messageId: string, |
| 225 | index: number, |
| 226 | opts: { inline?: boolean } = {}, |
| 227 | explicitAddress?: string, |
| 228 | ): Promise<AttachmentView> { |
| 229 | return this.sdk.messages.getAttachment(this.resolveAddress(explicitAddress), messageId, index, opts); |
| 230 | } |
| 231 | |
| 232 | // Cursor pagination (§6a #3): returns ONE page + next_cursor. `limit` is the |
| 233 | // page size; pass a prior response's next_cursor as `cursor` for the next page. |
no test coverage detected