Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

docs: add gif_playback to openapi spec and frontend UI

aldinokemald32aadf93aa1
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index 91ae49ab..b1b81204 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -1142,6 +1142,10 @@ paths:
type: boolean
example: false
description: Compress video
+ gif_playback:
+ type: boolean
+ example: false
+ description: Display video as GIF (looping, silent, autoplay)
duration:
type: integer
example: 3600
diff --git a/src/views/components/SendVideo.js b/src/views/components/SendVideo.js
index b82a33f7..19d471a3 100644
--- a/src/views/components/SendVideo.js
+++ b/src/views/components/SendVideo.js
@@ -16,6 +16,7 @@ export default {
caption: '',
view_once: false,
compress: false,
+ gif_playback: false,
type: window.TYPEUSER,
phone: '',
loading: false,
@@ -94,6 +95,7 @@ export default {
payload.append("caption", this.caption.trim())
payload.append("view_once", this.view_once)
payload.append("compress", this.compress)
+ payload.append("gif_playback", this.gif_playback)
payload.append("is_forwarded", this.is_forwarded)
if (this.duration && this.duration > 0) {
payload.append("duration", this.duration)
@@ -123,6 +125,7 @@ export default {
this.caption = '';
this.view_once = false;
this.compress = false;
+ this.gif_playback = false;
this.phone = '';
this.selectedFileName = null;
this.video_url = null;
@@ -180,6 +183,13 @@ export default {
<label>Check for compressing video to smaller size</label>
</div>
</div>
+ <div class="field" v-if="isShowAttributes()">
+ <label>GIF Playback</label>
+ <div class="ui toggle checkbox">
+ <input type="checkbox" aria-label="gif playback" v-model="gif_playback">
+ <label>Display video as GIF (looping, silent, autoplay)</label>
+ </div>
+ </div>
<div class="field" v-if="isShowAttributes() && !view_once">
<label>Is Forwarded</label>
<div class="ui toggle checkbox">