kakao_get_attachment
Fetch message attachments (photos, videos, files, voice notes, emoticons) from KakaoTalk chats and save them locally. If an attachment is expired, ask the user to open the message in KakaoTalk before retrying.
Instructions
Fetch the photo, video, file, voice note or emoticon of a message.
Only messages that have an attachment field are fetchable. Returns JSON
{kind, name, size, path} (path is a local file); photos and emoticons also
come back as a downscaled image you can look at (animated emoticons show
their first frame). If attachment.expired is true and
saved_locally is absent, the download will probably fail; ask the user to
open that message in KakaoTalk, then retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Only for type "photos": which photo, 0 to attachment.count-1. | |
| chat_id | Yes | Chat id STRING from kakao_list_chats or kakao_search, passed back unchanged (ids exceed 2^53, so never convert them to numbers). | |
| message_id | Yes | message_id from kakao_read_messages or kakao_search. |