whatsapp-multi-devicewhatsapp-apiwhatsapprestgolanggogolang-whatsapp-apigolang-whatsappbotwhatsapp-web-multi-devicewhatsapp-api-gorest-api
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
55 lines
1.5 KiB
package structs
|
|
|
|
import (
|
|
"mime/multipart"
|
|
)
|
|
|
|
type SendType string
|
|
|
|
const TypeUser SendType = "user"
|
|
const TypeGroup SendType = "group"
|
|
|
|
type SendMessageRequest struct {
|
|
Phone string `json:"phone" form:"phone"`
|
|
Message string `json:"message" form:"message"`
|
|
Type SendType `json:"type" form:"type"`
|
|
}
|
|
|
|
type SendMessageResponse struct {
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type SendImageRequest struct {
|
|
Phone string `json:"phone" form:"phone"`
|
|
Caption string `json:"caption" form:"caption"`
|
|
Image *multipart.FileHeader `json:"image" form:"image"`
|
|
ViewOnce bool `json:"view_once" form:"view_once"`
|
|
Type SendType `json:"type" form:"type"`
|
|
}
|
|
|
|
type SendImageResponse struct {
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type SendFileRequest struct {
|
|
Phone string `json:"phone" form:"phone"`
|
|
File *multipart.FileHeader `json:"file" form:"file"`
|
|
Type SendType `json:"type" form:"type"`
|
|
}
|
|
|
|
type SendFileResponse struct {
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type SendVideoRequest struct {
|
|
Phone string `json:"phone" form:"phone"`
|
|
Caption string `json:"caption" form:"caption"`
|
|
Video *multipart.FileHeader `json:"video" form:"video"`
|
|
Type SendType `json:"type" form:"type"`
|
|
ViewOnce bool `json:"view_once" form:"view_once"`
|
|
Compress bool `json:"compress"`
|
|
}
|
|
|
|
type SendVideoResponse struct {
|
|
Status string `json:"status"`
|
|
}
|