Uploading Files to WhatsApp - Resumable #68
-
Hi there However, it seems when I run the code, that I do not get back a WhatsApp media file ID, I get a H from WhatsApp, File Upload Status, and File Offset... Should i be getting an ID as well so I can use the ID in later sends where I want to refer / use that uploaded file? The Normal Upload method is working 100% |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Resumable upload is only used for interruptions experienced in uploading large files to WhatsApp, it returns the H value which can be used for any graph API that supports file handle requests. Normal upload returns the media ID that can be used to send any media message with the media ID from the uploaded file. |
Beta Was this translation helpful? Give feedback.
-
Yes, but the point being from your code example, if i had to upload a large file (resumable) then from your code example I'm not getting an ID from WhatsApp.
It sounds like you're saying one then needs to use something in addition to get the file ID from WhatsApp?
Get BlueMail for Android
…On 19 Feb 2024, 21:11, at 21:11, Gabriel Odero ***@***.***> wrote:
Resumable upload is only used for interruptions experienced in
uploading large files to WhatsApp, it returns the H value which can be
used for any graph API that supports file handle requests.
Normal upload returns the media ID that can be used to send any media
message with the media ID from the uploaded file.
--
Reply to this email directly or view it on GitHub:
#68 (comment)
You are receiving this because you authored the thread.
Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ok, now i understand.
So for now, from what you said, the resumable upload should not even be part of this project as WhatsApp cannot use it.
Thank you
Get BlueMail for Android
…On 19 Feb 2024, 21:30, at 21:30, Gabriel Odero ***@***.***> wrote:
Resumable upload is a global graph API implementation not tied to
WhatsApp cloud API. It is aimed at using file handler requests that are
used by other graph API services integration like Instagram and
Facebook pages that support the file handler requests. The H value is a
file handler request and it won't return the media ID from WhatsApp
cloud API. Currently, there's no WhatsApp cloud API that supports file
handler requests.
For WhatsApp Cloud API only use normal upload for sending media
messages with Media ID.
--
Reply to this email directly or view it on GitHub:
#68 (reply in thread)
You are receiving this because you authored the thread.
Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @gabrieldwight , what about this WhatsApp Cloud API documentations to upload Media on Media Headers Templates or updating the profile pic of a WhatsApp business Profile?
I'm struggling with these uploads, is there any way to bypas these resumable upload steps? Maybe using an older version of WPP Cloud API? Best regards, Daniel |
Beta Was this translation helpful? Give feedback.
Yes, WhatsApp cannot use resumable upload media to send media messages with file handlers.