Pular para o conteúdo principal

public_message_attachment

Attachment payload. Available fields vary by attachment file_type.

idinteger

Id of the attachment

message_idinteger

Id of the parent message

file_typestring

Type of the attached file

Possible values: [image, audio, video, file, location, fallback, share, story_mention, contact, ig_reel, ig_post, ig_story, embed]

account_idinteger

Id of the account

extensionstring | nullnullable

File extension

data_urlstring | nullnullable

URL of the file. Can be null when an attachment variant has no external URL.

thumb_urlstring

URL of the file thumbnail

file_sizeinteger

File size in bytes

widthinteger | nullnullable

Width of the attachment when available

heightinteger | nullnullable

Height of the attachment when available

coordinates_latnumber

Latitude for location attachments

coordinates_longnumber

Longitude for location attachments

fallback_titlestring | nullnullable

Fallback title for location, fallback, and contact attachments when available

metaobject

Metadata for contact attachments

transcribed_textstring

Transcribed text for audio attachments

property name*any

Attachment payload. Available fields vary by attachment file_type.

public_message_attachment
{
"id": 0,
"message_id": 0,
"file_type": "image",
"account_id": 0,
"extension": "string",
"data_url": "string",
"thumb_url": "string",
"file_size": 0,
"width": 0,
"height": 0,
"coordinates_lat": 0,
"coordinates_long": 0,
"fallback_title": "string",
"meta": {},
"transcribed_text": "string"
}