Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
27 lines (24 sloc) 2.231 kb
<?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.12.68'; // The WhatsApp version.
const WHATSAPP_USER_AGENT = 'WhatsApp/2.12.68 S40Version/14.26 Device/Nokia302'; // User agent used in request/registration code.
const WHATSAPP_VER_CHECKER = 'https://coderus.openrepos.net/whitesoft/whatsapp_version'; // Check WhatsApp version
}
Jump to Line
Something went wrong with that request. Please try again.