forked from domingopa/WhatsAPI-Official
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.php
More file actions
26 lines (24 loc) · 2.18 KB
/
Copy pathConstants.php
File metadata and controls
26 lines (24 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
class Constants
{
/**
* Constant declarations.
*/
const CONNECTED_STATUS = 'connected'; // Describes the connection status with the WhatsApp server.
const DISCONNECTED_STATUS = 'disconnected'; // Describes the connection status with the WhatsApp server.
const MEDIA_FOLDER = 'media'; // The relative folder to store received media files
const PICTURES_FOLDER = 'pictures'; // The relative folder to store picture files
const DATA_FOLDER = 'wadata'; // The relative folder to store cache files.
const PORT = 443; // The port of the WhatsApp server.
const TIMEOUT_SEC = 2; // The timeout for the connection with the WhatsApp servers.
const TIMEOUT_USEC = 0;
const WHATSAPP_CHECK_HOST = 'v.whatsapp.net/v2/exist'; // The check credentials host.
const WHATSAPP_GROUP_SERVER = 'g.us'; // The Group server hostname
const WHATSAPP_REGISTER_HOST = 'v.whatsapp.net/v2/register'; // The register code host.
const WHATSAPP_REQUEST_HOST = 'v.whatsapp.net/v2/code'; // The request code host.
const WHATSAPP_SERVER = 's.whatsapp.net'; // The hostname used to login/send messages.
const WHATSAPP_DEVICE = 'S40'; // The device name.
const WHATSAPP_VER = '2.13.4'; // The WhatsApp version.
const WHATSAPP_USER_AGENT = 'WhatsApp/2.13.4 S40Version/14.26 Device/Nokia302'; // User agent used in request/registration code.
const WHATSAPP_VER_CHECKER = 'https://coderus.openrepos.net/whitesoft/whatsapp_scratch'; // Check WhatsApp version
}