@@ -68,7 +68,7 @@ Supported extensions ( jpg , jpeg , gif , png , svg , webp , bmp ) .
68
68
69
69
Max file size : 16MB .
70
70
71
- Max Base64 length : 2 ,000,000
71
+ Max Base64 length : 10 ,000,000
72
72
73
73
* ** $nocache** : default false
74
74
@@ -85,22 +85,50 @@ $referenceId="SDK";
85
85
$nocache=false;
86
86
$api=$client->sendImageMessage($to,$image,$caption,$priority,$referenceId,$nocache);
87
87
print_r($api);
88
+
89
+ ```
90
+ ## Send Sticker
91
+ * ** $sticker** : HTTP link image or base64-encoded file
92
+
93
+ Supported extensions ( jpg , jpeg , gif , png , svg , webp , bmp ) .
94
+
95
+ Max file size : 16MB .
96
+
97
+ Max Base64 length : 10,000,000
98
+
99
+ * ** $nocache** : default false
100
+
101
+ false : use a previously uploaded file instead of uploading it with each request
102
+
103
+ true : uploading it each request
104
+
105
+ ``` php
106
+ $to="put_your_mobile_number_here";
107
+ $sticker="https://file-example.s3-accelerate.amazonaws.com/images/test.jpg";
108
+ $priority=10;
109
+ $referenceId="SDK";
110
+ $nocache=false;
111
+ $api=$client->sendStickerMessage($to,$sticker,$priority,$referenceId,$nocache);
112
+ print_r($api);
88
113
```
114
+
89
115
## Send Document
90
116
* ** $filename** : File name, for example 1.jpg or Hello.pdf
117
+ * ** $caption** : Document Caption, UTF-8 or UTF-16 string with emoji .
91
118
* ** $document** : HTTP link file or base64-encoded file
92
119
93
120
Supported most extensions like ( zip , xlsx , csv , txt , pptx , docx ....etc ) .
94
121
95
122
Max file size : 100MB .
96
123
97
- Max Base64 length : 2 ,000,000
124
+ Max Base64 length : 10 ,000,000
98
125
99
126
``` php
100
127
$to="put_your_mobile_number_here";
101
- $filename="image Caption";
128
+ $filename="File name";
129
+ $caption="Document Caption";
102
130
$document="https://file-example.s3-accelerate.amazonaws.com/documents/cv.pdf";
103
- $api=$client->sendDocumentMessage($to,$filename,$document);
131
+ $api=$client->sendDocumentMessage($to,$filename,$document,$caption );
104
132
print_r($api);
105
133
```
106
134
@@ -111,7 +139,7 @@ Supported extensions ( mp3 , aac , ogg ) .
111
139
112
140
Max file size : 16MB .
113
141
114
- Max Base64 length : 2 ,000,000
142
+ Max Base64 length : 10 ,000,000
115
143
116
144
``` php
117
145
$to="put_your_mobile_number_here";
@@ -124,7 +152,7 @@ print_r($api);
124
152
125
153
Max file size : 16MB .
126
154
127
- Max Base64 length : 2 ,000,000
155
+ Max Base64 length : 10 ,000,000
128
156
129
157
``` php
130
158
$to="put_your_mobile_number_here";
@@ -140,7 +168,7 @@ Supported extensions ( mp4 , 3gp , mov ) .
140
168
141
169
Max file size : 16MB .
142
170
143
- Max Base64 length : 2 ,000,000
171
+ Max Base64 length : 10 ,000,000
144
172
145
173
``` php
146
174
$to="put_your_mobile_number_here";
@@ -297,18 +325,7 @@ print_r($api);
297
325
$api=$client->getInstanceQrCode();
298
326
print_r($api);
299
327
```
300
- ## Get Instance Screenshot
301
-
302
- ``` php
303
- header('Content-Type: image/png');
304
- $api=$client->getInstanceScreenshot();
305
- print_r($api);
306
- ```
307
- or base64
308
- ``` php
309
- $api=$client->getInstanceScreenshot("base64");
310
- print_r($api);
311
- ```
328
+
312
329
## Get Instance Info
313
330
Get connected phone informations : number , name , image etc..
314
331
``` php
@@ -456,4 +473,4 @@ print_r($api);
456
473
457
474
458
475
# Support
459
- Use ** Issues** to contact me
476
+ Use ** Issues** to contact me
0 commit comments