Media Messages : ImageMessage, VideoMessage, DocumentMessage ... #260
Answered
by
arthurbaquit
mamur-rezeki
asked this question in
WhatsApp protocol Q&A
-
ImageMessage if up, err := client.Upload(context.Background(), bytedata, whatsmeow.MediaImage); err != nil {
return nil, err
} else {
var message = &waProto.ImageMessage{
Url: &up.URL,
Mimetype: proto.String(mimetype),
Caption: proto.String("Caption"),
FileSha256: up.FileSHA256,
FileEncSha256: up.FileEncSHA256,
FileLength: &up.FileLength,
MediaKey: up.MediaKey,
DirectPath: &up.DirectPath,
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
arthurbaquit
May 26, 2023
Replies: 2 comments 3 replies
-
I think for sending documents you need to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mamur-rezeki
-
Circular Video MessageCircular Video Message is based on var msg = &waProto.Message{
PvtMessage: &waProto.VideoMessage{
....
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think for sending documents you need to use
waProto.DocumentMessage{...