This commit is contained in:
parent
45604b5797
commit
6eeda76d63
@ -497,7 +497,8 @@ class WhatsAppService:
|
|||||||
|
|
||||||
url = f"{self.base_url}/{self.phone_number_id}/messages"
|
url = f"{self.base_url}/{self.phone_number_id}/messages"
|
||||||
try:
|
try:
|
||||||
async with httpx.AsyncClient() as client:
|
ssl_ctx = ssl.create_default_context(cafile=certifi.where())
|
||||||
|
async with httpx.AsyncClient(verify=ssl_ctx) as client:
|
||||||
response = await client.post(
|
response = await client.post(
|
||||||
url,
|
url,
|
||||||
json=payload,
|
json=payload,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user