-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
24 lines (21 loc) · 927 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
from dotenv import load_dotenv
load_dotenv()
class Config:
SERPRO_OAUTH2_TOKEN_URL = "https://api.whatsapp.serpro.gov.br/oauth2/token"
RASA_WEBHOOK_URL = os.getenv(
"RASA_WEBHOOK_URL",
"https://metawebhooks.pencillabs.tec.br/webhooks/whatsapp/webhook",
)
SERPRO_CLIENT_URL = f'https://api.whatsapp.serpro.gov.br/client/{os.getenv("SERPRO_CLIENT_ID", "")}/v2'
SERPRO_WEBHOOK_REGISTRATION_URL = f"{SERPRO_CLIENT_URL}/webhook"
SERPRO_WABA_ID = os.getenv("SERPRO_WABA_ID", "")
SERPRO_TEXT_MESSAGES_URL = f"{SERPRO_CLIENT_URL}/requisicao/mensagem/texto"
SERPRO_BUTTONS_MESSAGES_URL = (
f"{SERPRO_CLIENT_URL}/requisicao/mensagem/interativa-botoes"
)
SERPRO_LIST_MESSAGES_URL = (
f"{SERPRO_CLIENT_URL}/requisicao/mensagem/interativa-lista"
)
REDIS_HOST = os.getenv("REDIS_HOST", "localhost")
REDIS_PORT = os.getenv("REDIS_PORT", "6379")