🧑💻 (whatsapp) Set default template language to en_US
This commit is contained in:
@@ -135,7 +135,10 @@ export const GroupSelectionMenu = ({
|
|||||||
borderRightRadius="none"
|
borderRightRadius="none"
|
||||||
borderLeftRadius="none"
|
borderLeftRadius="none"
|
||||||
aria-label="Copy"
|
aria-label="Copy"
|
||||||
onClick={handleCopy}
|
onClick={() => {
|
||||||
|
handleCopy()
|
||||||
|
toast('Groups copied to clipboard')
|
||||||
|
}}
|
||||||
bgColor={useColorModeValue('white', undefined)}
|
bgColor={useColorModeValue('white', undefined)}
|
||||||
icon={<CopyIcon />}
|
icon={<CopyIcon />}
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ In order to be able to test your bot on WhatsApp from the Preview drawer, you ne
|
|||||||
| META_SYSTEM_USER_TOKEN | | The system user token used to send WhatsApp messages |
|
| META_SYSTEM_USER_TOKEN | | The system user token used to send WhatsApp messages |
|
||||||
| WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID | | The phone number ID from which the message will be sent |
|
| WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID | | The phone number ID from which the message will be sent |
|
||||||
| WHATSAPP_PREVIEW_TEMPLATE_NAME | | The preview start template message name |
|
| WHATSAPP_PREVIEW_TEMPLATE_NAME | | The preview start template message name |
|
||||||
| WHATSAPP_PREVIEW_TEMPLATE_LANG | en | The preview start template message name |
|
| WHATSAPP_PREVIEW_TEMPLATE_LANG | en_US | The preview start template message name |
|
||||||
| WHATSAPP_CLOUD_API_URL | https://graph.facebook.com | The WhatsApp Cloud API base URL |
|
| WHATSAPP_CLOUD_API_URL | https://graph.facebook.com | The WhatsApp Cloud API base URL |
|
||||||
|
|
||||||
## Others
|
## Others
|
||||||
|
|||||||
6
packages/env/env.ts
vendored
6
packages/env/env.ts
vendored
@@ -286,7 +286,11 @@ const whatsAppEnv = {
|
|||||||
META_SYSTEM_USER_TOKEN: z.string().min(1).optional(),
|
META_SYSTEM_USER_TOKEN: z.string().min(1).optional(),
|
||||||
WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID: z.string().min(1).optional(),
|
WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID: z.string().min(1).optional(),
|
||||||
WHATSAPP_PREVIEW_TEMPLATE_NAME: z.string().min(1).optional(),
|
WHATSAPP_PREVIEW_TEMPLATE_NAME: z.string().min(1).optional(),
|
||||||
WHATSAPP_PREVIEW_TEMPLATE_LANG: z.string().min(1).optional().default('en'),
|
WHATSAPP_PREVIEW_TEMPLATE_LANG: z
|
||||||
|
.string()
|
||||||
|
.min(1)
|
||||||
|
.optional()
|
||||||
|
.default('en_US'),
|
||||||
WHATSAPP_CLOUD_API_URL: z
|
WHATSAPP_CLOUD_API_URL: z
|
||||||
.string()
|
.string()
|
||||||
.url()
|
.url()
|
||||||
|
|||||||
Reference in New Issue
Block a user