Skip to content

Commit 3073a3c

Browse files
committed
chore: add tiktok upload rules
1 parent 097e00a commit 3073a3c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/fileUploadRules.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const INBOX_TYPES = {
4949
LINE: 'Channel::Line',
5050
SMS: 'Channel::Sms',
5151
INSTAGRAM: 'Channel::Instagram',
52+
TIKTOK: 'Channel::Tiktok',
5253
VOICE: 'Channel::Voice',
5354
} as const;
5455

@@ -67,6 +68,7 @@ type ChannelConfigs = Partial<Record<ChannelKey, ChannelConfig>> & {
6768
* WHATSAPP CLOUD: https://developers.facebook.com/docs/whatsapp/cloud-api/reference/media#supported-media-types
6869
* TWILIO WHATSAPP: https://www.twilio.com/docs/whatsapp/guidance-whatsapp-media-messages
6970
* TWILIO SMS: https://www.twilio.com/docs/messaging/guides/accepted-mime-types
71+
* TIKTOK: https://business-api.tiktok.com/portal/docs?id=1832184403754242
7072
*/
7173

7274
// ---------- Central config ----------
@@ -177,6 +179,15 @@ const CHANNEL_CONFIGS: ChannelConfigs = {
177179
},
178180
},
179181

182+
[INBOX_TYPES.TIKTOK]: {
183+
'*': {
184+
mimeGroups: {
185+
image: ['jpeg', 'png'],
186+
},
187+
maxByCategory: { image: 3 },
188+
},
189+
},
190+
180191
[INBOX_TYPES.TWILIO]: {
181192
sms: { max: 5 },
182193
whatsapp: {

0 commit comments

Comments
 (0)