How to send a message with a link to YouTube video, in a way that the video can be played within WhatsApp? #575
Unanswered
AmitRaphael
asked this question in
WhatsApp protocol Q&A
Replies: 1 comment
-
This is the dump of the link previewed message. {
"extendedTextMessage": {
"text": ".link https://www.youtube.com/watch?v=Rg4R0xMwVyo",
"matchedText": "https://www.youtube.com/watch?v=Rg4R0xMwVyo",
"canonicalUrl": "https://www.youtube.com/watch?v=Rg4R0xMwVyo",
"description": "عمل مهدى من حسين شعبانإلى روح فقيد الجهاد قاسم عزامكلمات إسراء شبليألحان وأداء محمد جعفر غندورتوزيع علي حيدر قليطميكس وماستر قاسم حمادي",
"title": "قمر غفى | محمد جعفر غندور",
"previewType": 1,
"jpegThumbnail": "<base64 of jpeg>",
"contextInfo": {
"expiration": 604800,
"disappearingMode": {
"initiator": 0,
"trigger": 0
}
},
"thumbnailDirectPath": "/v/t62.36144-24/41177415_1008972273986887_645434451292519189_n.enc?ccb=11-4\u0026oh=01_Q5AaIMaBO6fRxIWAi9FkfEhekHC3SDkRLBXNJMWifHKAzj7c\u0026oe=66558F89\u0026_nc_sid=5e03e0",
"thumbnailSha256": "MIB2KT1jpJ7vV7w7NIdEW9TzWUV8JlEKjSytpaXNRrU=",
"thumbnailEncSha256": "T70nOydojkwgDLB9CzW+LvVm0DM0dV8fOmBGuegruUM=",
"mediaKey": "DZXpBbtrO2teoA92vjhg8cA8gLETXV7I7kmXfz/QCH4=",
"mediaKeyTimestamp": 1714305271,
"thumbnailHeight": 576,
"thumbnailWidth": 1024,
"inviteLinkGroupTypeV2": 0
},
"messageContextInfo": {
"messageSecret": "ukZju2JSv3mz4Aob5k/tN2Dzdq6zdsfewNJcDIqwK+o="
}
} This is just an
The const (
ExtendedTextMessage_NONE ExtendedTextMessage_PreviewType = 0
ExtendedTextMessage_VIDEO ExtendedTextMessage_PreviewType = 1
ExtendedTextMessage_PLACEHOLDER ExtendedTextMessage_PreviewType = 4
ExtendedTextMessage_IMAGE ExtendedTextMessage_PreviewType = 5
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I manually type a link to YouTube video into a WhatsApp message, after waiting a few seconds, the message will have on top of it, a playable image of the video that will allow playing the video within WhatsApp chat.
Is there a way to send the message that way?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions