@oficialapi/sdk 9.0.3 → 9.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -115
- package/dist/index.d.mts +79 -78
- package/dist/index.d.ts +79 -78
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36,7 +36,7 @@ interface ApiResponse<T = any> {
|
|
|
36
36
|
}
|
|
37
37
|
interface Channel {
|
|
38
38
|
id: number;
|
|
39
|
-
|
|
39
|
+
channelToken: string;
|
|
40
40
|
nome: string;
|
|
41
41
|
channel: 'whatsapp' | 'facebook' | 'instagram' | 'webchat' | 'email' | 'telegram';
|
|
42
42
|
status: boolean;
|
|
@@ -48,12 +48,12 @@ interface Channel {
|
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
}
|
|
50
50
|
interface SendWhatsAppTextParams {
|
|
51
|
-
|
|
51
|
+
channelToken: string;
|
|
52
52
|
sender: string;
|
|
53
53
|
messageText: string;
|
|
54
54
|
}
|
|
55
55
|
interface SendWhatsAppMediaParams {
|
|
56
|
-
|
|
56
|
+
channelToken: string;
|
|
57
57
|
sender: string;
|
|
58
58
|
fileUrl: string;
|
|
59
59
|
type: 'image' | 'video' | 'audio' | 'document';
|
|
@@ -61,7 +61,7 @@ interface SendWhatsAppMediaParams {
|
|
|
61
61
|
fileName?: string;
|
|
62
62
|
}
|
|
63
63
|
interface SendWhatsAppTemplateParams {
|
|
64
|
-
|
|
64
|
+
channelToken: string;
|
|
65
65
|
sender: string;
|
|
66
66
|
templateName: string;
|
|
67
67
|
languageCode: string;
|
|
@@ -93,7 +93,7 @@ interface SendWhatsAppTemplateParams {
|
|
|
93
93
|
}>;
|
|
94
94
|
}
|
|
95
95
|
interface SendWhatsAppButtonsParams {
|
|
96
|
-
|
|
96
|
+
channelToken: string;
|
|
97
97
|
sender: string;
|
|
98
98
|
text: string;
|
|
99
99
|
buttons: Array<{
|
|
@@ -106,7 +106,7 @@ interface SendWhatsAppButtonsParams {
|
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
interface SendWhatsAppListParams {
|
|
109
|
-
|
|
109
|
+
channelToken: string;
|
|
110
110
|
sender: string;
|
|
111
111
|
headerText: string;
|
|
112
112
|
bodyText: string;
|
|
@@ -122,20 +122,20 @@ interface SendWhatsAppListParams {
|
|
|
122
122
|
}>;
|
|
123
123
|
}
|
|
124
124
|
interface ReplyWhatsAppParams {
|
|
125
|
-
|
|
125
|
+
channelToken: string;
|
|
126
126
|
sender: string;
|
|
127
127
|
messageText: string;
|
|
128
128
|
replyMessageId?: string;
|
|
129
129
|
preview_url?: boolean;
|
|
130
130
|
}
|
|
131
131
|
interface ReactWhatsAppParams {
|
|
132
|
-
|
|
132
|
+
channelToken: string;
|
|
133
133
|
sender: string;
|
|
134
134
|
emoji: string;
|
|
135
135
|
message_id?: string;
|
|
136
136
|
}
|
|
137
137
|
interface CreateTemplateParams {
|
|
138
|
-
|
|
138
|
+
channelToken: string;
|
|
139
139
|
name: string;
|
|
140
140
|
language: string;
|
|
141
141
|
category: 'MARKETING' | 'UTILITY' | 'AUTHENTICATION';
|
|
@@ -156,13 +156,13 @@ interface CreateTemplateParams {
|
|
|
156
156
|
}>;
|
|
157
157
|
}
|
|
158
158
|
interface UploadMediaParams {
|
|
159
|
-
|
|
159
|
+
channelToken: string;
|
|
160
160
|
file: File | Blob | Buffer;
|
|
161
161
|
mediaType: 'image' | 'video' | 'document';
|
|
162
162
|
filename?: string;
|
|
163
163
|
}
|
|
164
164
|
interface SendOrderDetailsParams {
|
|
165
|
-
|
|
165
|
+
channelToken: string;
|
|
166
166
|
sender: string;
|
|
167
167
|
headerText?: string;
|
|
168
168
|
bodyText: string;
|
|
@@ -240,7 +240,7 @@ interface SendOrderDetailsParams {
|
|
|
240
240
|
}>;
|
|
241
241
|
}
|
|
242
242
|
interface SendOrderStatusParams {
|
|
243
|
-
|
|
243
|
+
channelToken: string;
|
|
244
244
|
sender: string;
|
|
245
245
|
bodyText: string;
|
|
246
246
|
footerText?: string;
|
|
@@ -251,31 +251,31 @@ interface SendOrderStatusParams {
|
|
|
251
251
|
payment_timestamp?: number;
|
|
252
252
|
}
|
|
253
253
|
interface SendWhatsAppAudioParams {
|
|
254
|
-
|
|
254
|
+
channelToken: string;
|
|
255
255
|
sender: string;
|
|
256
256
|
mediaId: string;
|
|
257
257
|
voice?: boolean;
|
|
258
258
|
}
|
|
259
259
|
interface SendWhatsAppStickerParams {
|
|
260
|
-
|
|
260
|
+
channelToken: string;
|
|
261
261
|
sender: string;
|
|
262
262
|
mediaId: string;
|
|
263
263
|
}
|
|
264
264
|
interface SendWhatsAppVideoParams {
|
|
265
|
-
|
|
265
|
+
channelToken: string;
|
|
266
266
|
sender: string;
|
|
267
267
|
mediaId: string;
|
|
268
268
|
caption?: string;
|
|
269
269
|
}
|
|
270
270
|
interface SendWhatsAppDocumentParams {
|
|
271
|
-
|
|
271
|
+
channelToken: string;
|
|
272
272
|
sender: string;
|
|
273
273
|
mediaId: string;
|
|
274
274
|
filename?: string;
|
|
275
275
|
caption?: string;
|
|
276
276
|
}
|
|
277
277
|
interface SendWhatsAppContactParams {
|
|
278
|
-
|
|
278
|
+
channelToken: string;
|
|
279
279
|
sender: string;
|
|
280
280
|
contacts: Array<{
|
|
281
281
|
name: {
|
|
@@ -317,7 +317,7 @@ interface SendWhatsAppContactParams {
|
|
|
317
317
|
}>;
|
|
318
318
|
}
|
|
319
319
|
interface SendWhatsAppLocationParams {
|
|
320
|
-
|
|
320
|
+
channelToken: string;
|
|
321
321
|
sender: string;
|
|
322
322
|
latitude: number;
|
|
323
323
|
longitude: number;
|
|
@@ -325,14 +325,14 @@ interface SendWhatsAppLocationParams {
|
|
|
325
325
|
address?: string;
|
|
326
326
|
}
|
|
327
327
|
interface SendWhatsAppLocationRequestParams {
|
|
328
|
-
|
|
328
|
+
channelToken: string;
|
|
329
329
|
sender: string;
|
|
330
330
|
bodyText: string;
|
|
331
331
|
headerText?: string;
|
|
332
332
|
footerText?: string;
|
|
333
333
|
}
|
|
334
334
|
interface SendWhatsAppCtaUrlParams {
|
|
335
|
-
|
|
335
|
+
channelToken: string;
|
|
336
336
|
sender: string;
|
|
337
337
|
bodyText: string;
|
|
338
338
|
buttonText: string;
|
|
@@ -345,7 +345,7 @@ interface SendWhatsAppCtaUrlParams {
|
|
|
345
345
|
footerText?: string;
|
|
346
346
|
}
|
|
347
347
|
interface SendWhatsAppMediaCarouselParams {
|
|
348
|
-
|
|
348
|
+
channelToken: string;
|
|
349
349
|
sender: string;
|
|
350
350
|
bodyText: string;
|
|
351
351
|
cards: Array<{
|
|
@@ -358,11 +358,11 @@ interface SendWhatsAppMediaCarouselParams {
|
|
|
358
358
|
}>;
|
|
359
359
|
}
|
|
360
360
|
interface DownloadWhatsAppMediaParams {
|
|
361
|
-
|
|
361
|
+
channelToken: string;
|
|
362
362
|
url: string;
|
|
363
363
|
}
|
|
364
364
|
interface SendTelegramTextParams {
|
|
365
|
-
|
|
365
|
+
channelToken: string;
|
|
366
366
|
chatId: string | number;
|
|
367
367
|
text: string;
|
|
368
368
|
parseMode?: 'HTML' | 'Markdown' | 'MarkdownV2';
|
|
@@ -370,7 +370,7 @@ interface SendTelegramTextParams {
|
|
|
370
370
|
disableNotification?: boolean;
|
|
371
371
|
}
|
|
372
372
|
interface SendTelegramMediaParams {
|
|
373
|
-
|
|
373
|
+
channelToken: string;
|
|
374
374
|
chatId: string | number;
|
|
375
375
|
fileUrl: string;
|
|
376
376
|
type: 'photo' | 'video' | 'audio' | 'document' | 'voice';
|
|
@@ -379,7 +379,7 @@ interface SendTelegramMediaParams {
|
|
|
379
379
|
replyToMessageId?: number;
|
|
380
380
|
}
|
|
381
381
|
interface SendTelegramButtonsParams {
|
|
382
|
-
|
|
382
|
+
channelToken: string;
|
|
383
383
|
chatId: string | number;
|
|
384
384
|
text: string;
|
|
385
385
|
buttons: Array<Array<{
|
|
@@ -393,14 +393,14 @@ interface SendTelegramButtonsParams {
|
|
|
393
393
|
parseMode?: 'HTML' | 'Markdown' | 'MarkdownV2';
|
|
394
394
|
}
|
|
395
395
|
interface SendTelegramLocationParams {
|
|
396
|
-
|
|
396
|
+
channelToken: string;
|
|
397
397
|
chatId: string | number;
|
|
398
398
|
latitude: number;
|
|
399
399
|
longitude: number;
|
|
400
400
|
livePeriod?: number;
|
|
401
401
|
}
|
|
402
402
|
interface SendTelegramContactParams {
|
|
403
|
-
|
|
403
|
+
channelToken: string;
|
|
404
404
|
chatId: string | number;
|
|
405
405
|
phoneNumber: string;
|
|
406
406
|
firstName: string;
|
|
@@ -408,7 +408,7 @@ interface SendTelegramContactParams {
|
|
|
408
408
|
vcard?: string;
|
|
409
409
|
}
|
|
410
410
|
interface SendTelegramPollParams {
|
|
411
|
-
|
|
411
|
+
channelToken: string;
|
|
412
412
|
chatId: string | number;
|
|
413
413
|
question: string;
|
|
414
414
|
options: string[];
|
|
@@ -417,7 +417,7 @@ interface SendTelegramPollParams {
|
|
|
417
417
|
correctOptionId?: number;
|
|
418
418
|
}
|
|
419
419
|
interface SendTelegramVenueParams {
|
|
420
|
-
|
|
420
|
+
channelToken: string;
|
|
421
421
|
chatId: string | number;
|
|
422
422
|
latitude: number;
|
|
423
423
|
longitude: number;
|
|
@@ -426,31 +426,31 @@ interface SendTelegramVenueParams {
|
|
|
426
426
|
foursquareId?: string;
|
|
427
427
|
}
|
|
428
428
|
interface SendTelegramDiceParams {
|
|
429
|
-
|
|
429
|
+
channelToken: string;
|
|
430
430
|
chatId: string | number;
|
|
431
431
|
emoji?: '🎲' | '🎯' | '🏀' | '⚽' | '🎳' | '🎰';
|
|
432
432
|
}
|
|
433
433
|
interface SendTelegramStickerParams {
|
|
434
|
-
|
|
434
|
+
channelToken: string;
|
|
435
435
|
chatId: string | number;
|
|
436
436
|
stickerUrl: string;
|
|
437
437
|
}
|
|
438
438
|
interface SendTelegramVoiceParams {
|
|
439
|
-
|
|
439
|
+
channelToken: string;
|
|
440
440
|
chatId: string | number;
|
|
441
441
|
voiceUrl: string;
|
|
442
442
|
caption?: string;
|
|
443
443
|
duration?: number;
|
|
444
444
|
}
|
|
445
445
|
interface SendTelegramVideoNoteParams {
|
|
446
|
-
|
|
446
|
+
channelToken: string;
|
|
447
447
|
chatId: string | number;
|
|
448
448
|
videoNoteUrl: string;
|
|
449
449
|
duration?: number;
|
|
450
450
|
length?: number;
|
|
451
451
|
}
|
|
452
452
|
interface SendTelegramMediaGroupParams {
|
|
453
|
-
|
|
453
|
+
channelToken: string;
|
|
454
454
|
chatId: string | number;
|
|
455
455
|
media: Array<{
|
|
456
456
|
type: 'photo' | 'video';
|
|
@@ -459,7 +459,7 @@ interface SendTelegramMediaGroupParams {
|
|
|
459
459
|
}>;
|
|
460
460
|
}
|
|
461
461
|
interface SendTelegramReplyKeyboardParams {
|
|
462
|
-
|
|
462
|
+
channelToken: string;
|
|
463
463
|
chatId: string | number;
|
|
464
464
|
text: string;
|
|
465
465
|
keyboard: Array<Array<{
|
|
@@ -469,19 +469,19 @@ interface SendTelegramReplyKeyboardParams {
|
|
|
469
469
|
oneTimeKeyboard?: boolean;
|
|
470
470
|
}
|
|
471
471
|
interface EditTelegramMessageParams {
|
|
472
|
-
|
|
472
|
+
channelToken: string;
|
|
473
473
|
chatId: string | number;
|
|
474
474
|
messageId: number;
|
|
475
475
|
text: string;
|
|
476
476
|
parseMode?: 'HTML' | 'Markdown' | 'MarkdownV2';
|
|
477
477
|
}
|
|
478
478
|
interface DeleteTelegramMessageParams {
|
|
479
|
-
|
|
479
|
+
channelToken: string;
|
|
480
480
|
chatId: string | number;
|
|
481
481
|
messageId: number;
|
|
482
482
|
}
|
|
483
483
|
interface DownloadTelegramMediaParams {
|
|
484
|
-
|
|
484
|
+
channelToken: string;
|
|
485
485
|
fileId: string;
|
|
486
486
|
}
|
|
487
487
|
interface SendWebChatTextParams {
|
|
@@ -582,44 +582,44 @@ interface SendWebChatButtonsParams {
|
|
|
582
582
|
typingTime?: number;
|
|
583
583
|
}
|
|
584
584
|
interface ListPostsParams {
|
|
585
|
-
|
|
585
|
+
channelToken: string;
|
|
586
586
|
pageId: string;
|
|
587
587
|
limit?: number;
|
|
588
588
|
}
|
|
589
589
|
interface ListCommentsParams {
|
|
590
|
-
|
|
590
|
+
channelToken: string;
|
|
591
591
|
postId: string;
|
|
592
592
|
limit?: number;
|
|
593
593
|
}
|
|
594
594
|
interface CreatePostParams {
|
|
595
|
-
|
|
595
|
+
channelToken: string;
|
|
596
596
|
pageId: string;
|
|
597
597
|
message: string;
|
|
598
598
|
link?: string;
|
|
599
599
|
}
|
|
600
600
|
interface ReplyCommentParams {
|
|
601
|
-
|
|
601
|
+
channelToken: string;
|
|
602
602
|
commentId: string;
|
|
603
603
|
message: string;
|
|
604
604
|
}
|
|
605
605
|
interface DeleteCommentParams {
|
|
606
|
-
|
|
606
|
+
channelToken: string;
|
|
607
607
|
commentId: string;
|
|
608
608
|
}
|
|
609
609
|
interface SendFacebookTextParams {
|
|
610
|
-
|
|
610
|
+
channelToken: string;
|
|
611
611
|
recipientId: string;
|
|
612
612
|
message: string;
|
|
613
613
|
}
|
|
614
614
|
interface SendFacebookMediaParams {
|
|
615
|
-
|
|
615
|
+
channelToken: string;
|
|
616
616
|
recipientId: string;
|
|
617
617
|
fileUrl: string;
|
|
618
618
|
type: 'image' | 'video' | 'audio' | 'file';
|
|
619
619
|
caption?: string;
|
|
620
620
|
}
|
|
621
621
|
interface SendFacebookButtonsParams {
|
|
622
|
-
|
|
622
|
+
channelToken: string;
|
|
623
623
|
recipientId: string;
|
|
624
624
|
message: string;
|
|
625
625
|
buttons: Array<{
|
|
@@ -630,58 +630,59 @@ interface SendFacebookButtonsParams {
|
|
|
630
630
|
}>;
|
|
631
631
|
}
|
|
632
632
|
interface SendFacebookStickerParams {
|
|
633
|
-
|
|
633
|
+
channelToken: string;
|
|
634
634
|
recipientId: string;
|
|
635
635
|
stickerId: number;
|
|
636
636
|
}
|
|
637
637
|
interface ReplyFacebookMessageParams {
|
|
638
|
-
|
|
638
|
+
channelToken: string;
|
|
639
639
|
messageId: string;
|
|
640
640
|
message: string;
|
|
641
641
|
}
|
|
642
642
|
interface ReplyFacebookMediaParams {
|
|
643
|
-
|
|
643
|
+
channelToken: string;
|
|
644
644
|
messageId: string;
|
|
645
645
|
fileUrl: string;
|
|
646
646
|
type: 'image' | 'video' | 'audio' | 'file';
|
|
647
647
|
caption?: string;
|
|
648
648
|
}
|
|
649
649
|
interface SharePostParams {
|
|
650
|
-
|
|
650
|
+
channelToken: string;
|
|
651
651
|
mediaId: string;
|
|
652
652
|
recipientId: string;
|
|
653
653
|
}
|
|
654
654
|
interface GetFacebookUserProfileParams {
|
|
655
|
-
|
|
655
|
+
channelToken: string;
|
|
656
656
|
userId: string;
|
|
657
657
|
}
|
|
658
658
|
interface GetFacebookPageProfileParams {
|
|
659
|
-
|
|
659
|
+
channelToken: string;
|
|
660
660
|
pageId: string;
|
|
661
661
|
}
|
|
662
662
|
interface DownloadFacebookMediaParams {
|
|
663
|
-
|
|
663
|
+
channelToken: string;
|
|
664
664
|
url: string;
|
|
665
665
|
}
|
|
666
666
|
interface SendInstagramPrivateReplyParams {
|
|
667
|
-
|
|
667
|
+
channelToken: string;
|
|
668
668
|
commentId: string;
|
|
669
669
|
message: string;
|
|
670
670
|
}
|
|
671
671
|
interface SendInstagramTextParams {
|
|
672
|
-
|
|
672
|
+
channelToken: string;
|
|
673
673
|
recipientId: string;
|
|
674
|
-
|
|
674
|
+
text: string;
|
|
675
|
+
tags?: string[];
|
|
675
676
|
}
|
|
676
677
|
interface SendInstagramMediaParams {
|
|
677
|
-
|
|
678
|
+
channelToken: string;
|
|
678
679
|
recipientId: string;
|
|
679
680
|
fileUrl: string;
|
|
680
681
|
type: 'image' | 'video' | 'audio' | 'file';
|
|
681
682
|
caption?: string;
|
|
682
683
|
}
|
|
683
684
|
interface SendInstagramImagesParams {
|
|
684
|
-
|
|
685
|
+
channelToken: string;
|
|
685
686
|
recipientId: string;
|
|
686
687
|
images: Array<{
|
|
687
688
|
url: string;
|
|
@@ -689,22 +690,22 @@ interface SendInstagramImagesParams {
|
|
|
689
690
|
}>;
|
|
690
691
|
}
|
|
691
692
|
interface SendInstagramStickerParams {
|
|
692
|
-
|
|
693
|
+
channelToken: string;
|
|
693
694
|
recipientId: string;
|
|
694
695
|
stickerType: 'like' | 'heart';
|
|
695
696
|
}
|
|
696
697
|
interface ReactInstagramMessageParams {
|
|
697
|
-
|
|
698
|
+
channelToken: string;
|
|
698
699
|
messageId: string;
|
|
699
700
|
reactionType: 'like' | 'love' | 'wow' | 'haha' | 'sorry' | 'anger';
|
|
700
701
|
}
|
|
701
702
|
interface RemoveInstagramReactionParams {
|
|
702
|
-
|
|
703
|
+
channelToken: string;
|
|
703
704
|
recipientId: string;
|
|
704
705
|
messageId: string;
|
|
705
706
|
}
|
|
706
707
|
interface SendInstagramQuickRepliesParams {
|
|
707
|
-
|
|
708
|
+
channelToken: string;
|
|
708
709
|
recipientId: string;
|
|
709
710
|
message: string;
|
|
710
711
|
quickReplies: Array<{
|
|
@@ -714,7 +715,7 @@ interface SendInstagramQuickRepliesParams {
|
|
|
714
715
|
}>;
|
|
715
716
|
}
|
|
716
717
|
interface SendInstagramGenericTemplateParams {
|
|
717
|
-
|
|
718
|
+
channelToken: string;
|
|
718
719
|
recipientId: string;
|
|
719
720
|
elements: Array<{
|
|
720
721
|
title: string;
|
|
@@ -729,7 +730,7 @@ interface SendInstagramGenericTemplateParams {
|
|
|
729
730
|
}>;
|
|
730
731
|
}
|
|
731
732
|
interface SendInstagramButtonTemplateParams {
|
|
732
|
-
|
|
733
|
+
channelToken: string;
|
|
733
734
|
recipientId: string;
|
|
734
735
|
text: string;
|
|
735
736
|
buttons: Array<{
|
|
@@ -740,30 +741,30 @@ interface SendInstagramButtonTemplateParams {
|
|
|
740
741
|
}>;
|
|
741
742
|
}
|
|
742
743
|
interface SendInstagramSenderActionParams {
|
|
743
|
-
|
|
744
|
+
channelToken: string;
|
|
744
745
|
recipientId: string;
|
|
745
746
|
action: 'typing_on' | 'typing_off' | 'mark_seen';
|
|
746
747
|
}
|
|
747
748
|
interface GetInstagramUserProfileParams {
|
|
748
|
-
|
|
749
|
+
channelToken: string;
|
|
749
750
|
userId: string;
|
|
750
751
|
}
|
|
751
752
|
interface ListInstagramPostsParams {
|
|
752
|
-
|
|
753
|
+
channelToken: string;
|
|
753
754
|
userId?: string;
|
|
754
755
|
limit?: number;
|
|
755
756
|
}
|
|
756
757
|
interface GetInstagramBusinessProfileParams {
|
|
757
|
-
|
|
758
|
+
channelToken: string;
|
|
758
759
|
}
|
|
759
760
|
interface DownloadInstagramMediaParams {
|
|
760
|
-
|
|
761
|
+
channelToken: string;
|
|
761
762
|
url: string;
|
|
762
763
|
}
|
|
763
764
|
type InstagramPublishMediaType = 'IMAGE' | 'VIDEO' | 'REELS' | 'STORIES' | 'CAROUSEL';
|
|
764
765
|
type GraduationStrategy = 'MANUAL' | 'SS_PERFORMANCE';
|
|
765
766
|
interface CreateInstagramMediaContainerParams {
|
|
766
|
-
|
|
767
|
+
channelToken: string;
|
|
767
768
|
image_url?: string;
|
|
768
769
|
video_url?: string;
|
|
769
770
|
media_type: InstagramPublishMediaType;
|
|
@@ -784,18 +785,18 @@ interface CreateInstagramMediaContainerParams {
|
|
|
784
785
|
}>;
|
|
785
786
|
}
|
|
786
787
|
interface PublishInstagramMediaParams {
|
|
787
|
-
|
|
788
|
+
channelToken: string;
|
|
788
789
|
creation_id: string;
|
|
789
790
|
}
|
|
790
791
|
interface GetInstagramContainerStatusParams {
|
|
791
|
-
|
|
792
|
+
channelToken: string;
|
|
792
793
|
container_id: string;
|
|
793
794
|
}
|
|
794
795
|
interface GetInstagramPublishingLimitParams {
|
|
795
|
-
|
|
796
|
+
channelToken: string;
|
|
796
797
|
}
|
|
797
798
|
interface UploadInstagramVideoParams {
|
|
798
|
-
|
|
799
|
+
channelToken: string;
|
|
799
800
|
container_id: string;
|
|
800
801
|
file_url?: string;
|
|
801
802
|
offset?: number;
|
|
@@ -953,14 +954,14 @@ declare class WhatsAppModule {
|
|
|
953
954
|
* @param token Token do canal
|
|
954
955
|
* @param accessToken Token de acesso do usuário
|
|
955
956
|
*/
|
|
956
|
-
listTemplates(
|
|
957
|
+
listTemplates(channelToken: string, accessToken: string): Promise<ApiResponse<any>>;
|
|
957
958
|
/**
|
|
958
959
|
* Obtém detalhes de um template
|
|
959
|
-
* @param
|
|
960
|
+
* @param channelToken Token do canal
|
|
960
961
|
* @param templateId ID do template
|
|
961
962
|
* @param accessToken Token de acesso do usuário
|
|
962
963
|
*/
|
|
963
|
-
getTemplate(
|
|
964
|
+
getTemplate(channelToken: string, templateId: string, accessToken: string): Promise<ApiResponse<any>>;
|
|
964
965
|
/**
|
|
965
966
|
* Faz upload de mídia para templates
|
|
966
967
|
* @param params Parâmetros do upload
|
|
@@ -1452,7 +1453,7 @@ declare class InstagramModule {
|
|
|
1452
1453
|
*
|
|
1453
1454
|
* // Enviar mensagem WhatsApp
|
|
1454
1455
|
* const result = await sdk.whatsapp.sendText({
|
|
1455
|
-
*
|
|
1456
|
+
* channelToken: 'sk_live_...',
|
|
1456
1457
|
* sender: '5511999999999',
|
|
1457
1458
|
* messageText: 'Olá!'
|
|
1458
1459
|
* });
|