diff --git a/readme.md b/readme.md
index 2a4b1f1..e940213 100644
--- a/readme.md
+++ b/readme.md
@@ -91,16 +91,17 @@ You can check [docs/openapi.yml](./docs/openapi.yaml) for detail API
### App User Interface
-1. Homepage 
+1. Homepage 
2. Login 
-3. Send Message 
+3. Send Message 
4. Send Image 
-5. Send File 
-6. User Info 
-7. User Avatar 
-8. User Privacy 
-9. User Group 
-10. Auto Reply 
+5. Send File 
+6. Send Video 
+7. User Info 
+8. User Avatar 
+9. User Privacy 
+10. User Group 
+11. Auto Reply 
### Mac OS NOTE
diff --git a/src/config/settings.go b/src/config/settings.go
index 6956e2d..04049fd 100644
--- a/src/config/settings.go
+++ b/src/config/settings.go
@@ -3,7 +3,7 @@ package config
type Browser string
var (
- AppVersion string = "3.3.0"
+ AppVersion string = "3.3.1"
AppPort string = "3000"
AppDebug bool = false
diff --git a/src/views/index.html b/src/views/index.html
index aecec57..45f19de 100644
--- a/src/views/index.html
+++ b/src/views/index.html
@@ -94,7 +94,7 @@
Private
-
+
Send any message to any whatsapp number
@@ -126,7 +126,9 @@
Private
- Send video
mp4
up to
+ Send video
+
mp4
+ up to
{{ .MaxVideoSize }}
@@ -169,7 +171,9 @@
Group
- Send video
mp4
up to
+ Send video
+
mp4
+ up to
{{ .MaxVideoSize }}
@@ -241,6 +245,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
@@ -278,6 +296,11 @@
+
+
+
+
@@ -309,6 +332,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -605,6 +647,8 @@
data() {
return {
image_phone: '',
+ image_view_once: false,
+ image_compress: false,
image_caption: '',
image_type: 'user',
}
@@ -627,6 +671,8 @@
try {
let payload = new FormData();
payload.append("phone", this.image_phone)
+ payload.append("view_once", this.image_view_once)
+ payload.append("compress", this.image_compress)
payload.append("caption", this.image_caption)
payload.append("image", $("#image_file")[0].files[0])
payload.append("type", this.image_type)
@@ -649,6 +695,8 @@
})
},
sendImageReset() {
+ this.image_view_once = false;
+ this.image_compress = false;
this.image_phone = '';
this.image_caption = '';
this.image_type = 'user';
@@ -660,6 +708,7 @@
const sendFile = {
data() {
return {
+ file_caption: '',
file_type: 'user',
file_phone: '',
}
@@ -681,6 +730,7 @@
return new Promise(async (resolve, reject) => {
try {
let payload = new FormData();
+ payload.append("caption", this.file_caption)
payload.append("phone", this.file_phone)
payload.append("file", $("#file_file")[0].files[0])
payload.append("type", this.file_type)
@@ -703,6 +753,7 @@
})
},
sendFileReset() {
+ this.file_caption = '';
this.file_phone = '';
this.file_type = 'user';
$("#file_file").val('');
@@ -713,6 +764,9 @@
const sendVideo = {
data() {
return {
+ video_caption: '',
+ video_view_once: false,
+ video_compress: false,
video_type: 'user',
video_phone: '',
}
@@ -735,6 +789,9 @@
try {
let payload = new FormData();
payload.append("phone", this.video_phone)
+ payload.append("caption", this.video_caption)
+ payload.append("view_once", this.video_view_once)
+ payload.append("compress", this.video_compress)
payload.append("video", $("#video_file")[0].files[0])
payload.append("type", this.video_type)
let response = await axios.post(`${this.app_host}/send/video`, payload, {
@@ -756,6 +813,9 @@
})
},
sendVideoReset() {
+ this.video_caption = '';
+ this.video_view_once = false;
+ this.video_compress = false;
this.video_phone = '';
this.video_type = 'user';
$("#video_file").val('');