دریافت یک پیام
احراز هویت
پارامترهای مسیر
پاسخها
200
idstringالزامیشناسه پیام
typestringالزامینوع پیام
پیشفرض: "text"مقادیر:textimagevideogifshortaudiovoicedocumentlink_previewlocationlive_locationcontactcontact_liststickerpollgroup_inviteactionsystemunknownsubtypestringزیرنوع پیام
chat_idstringالزامیشناسه چت
chat_namestringنام چت
fromstringشناسه واتساپ فرستنده
from_mebooleanالزامیپیام از طرف همین حساب است
from_namestringنام نمایشی فرستنده
sourcestringمنبع پیام
مقادیر:webmobileapisystembusiness_apiunknowntimestampnumberالزامیزمان پیام (unix timestamp ثانیه)
statusstringوضعیت پیام
مقادیر:failedpendingsentdeliveredreadplayeddeletedtextTextContentفیلدهای TextContent
bodystringالزامیمتن پیام
view_onceboolean
imageMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
videoMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
gifMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
shortMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
audioMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
voiceMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
documentMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
stickerMediaContentفیلدهای MediaContent
idstringالزامیشناسه رسانه (برای دانلود: GET /media/{id})
mime_typestringالزامیfile_sizenumberالزامیحجم فایل (بایت)
file_namestringsha256stringSHA256 فایل (base64)
captionstringpreviewstringتصویر کوچک (base64)
widthnumberheightnumbersecondsnumberمدت (ثانیه) برای صوت و ویدیو
page_countnumberتعداد صفحهها (سند)
animatedbooleanاستیکر متحرک
view_onceboolean
link_previewLinkPreviewفیلدهای LinkPreview
bodystringالزامیمتن کامل پیام
urlstringtitlestringdescriptionstringcanonicalstringpreviewstringتصویر پیشنمایش (base64)
locationLocationفیلدهای Location
latitudenumberالزامیlongitudenumberالزامیnamestringaddressstringurlstring
contactContactCardفیلدهای ContactCard
namestringالزامیvcardstringالزامی
pollPollفیلدهای Poll
titlestringالزامیoptionsarray of stringالزامیvote_limitnumberحداکثر گزینه قابل انتخاب
actionMessageActionفیلدهای MessageAction
- مقادیر:
typestringالزامیeditededitdeletereactionephemeralvote targetstringشناسه پیام هدف
emojistringephemeralnumber- مقادیر:
edited_typestringtextimagevideogifshortaudiovoicedocumentlink_previewlocationlive_locationcontactcontact_liststickerpollgroup_inviteactionsystemunknown edited_contentobject
contextMessageContextفیلدهای MessageContext
forwardedbooleanپیام فوروارد شده است
forwarding_scorenumberتعداد دفعات فوروارد
mentionsarray of stringکاربران منشنشده
quoted_idstringشناسه پیام نقلقولشده
quoted_typestringنوع پیام نقلقولشده
مقادیر:textimagevideogifshortaudiovoicedocumentlink_previewlocationlive_locationcontactcontact_liststickerpollgroup_inviteactionsystemunknownquoted_contentobjectمحتوای پیام نقلقولشده
quoted_authorstringنویسنده پیام نقلقولشده
ephemeralnumberمدت پیامهای ناپدیدشونده (ثانیه)
404پیام پیدا نشد
errorErrorالزامیفیلدهای Error
codenumberالزامیکد خطا (همان کد وضعیت HTTP)
messagestringالزامیپیام خطا
detailsstringجزئیات خطا