-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathwbot_const.pas
73 lines (59 loc) · 2.13 KB
/
wbot_const.pas
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
_ _ _ _____
| | | || | |_ _| /|
| | | || |___ ___ | | / |__
| |/\| || _ |/ _ \| | /_ /
| / \ || (_) | (_) | | | /
|__/\__||_____|\___/|_| |/
}
unit WBot_Const;
{$i wbot.inc}
interface
uses
Classes, SysUtils;
const
WBOT_NAME = 'WBOT';
WBOT_VERSION = '0.1.1.1';
WBOT_WHATSAPP = 'https://web.whatsapp.com/';
WBOT_INI = 'wbot.ini';
CMD_SEND_CHAT_STATE =
'Store.WapQuery.sendChatstateComposing("<#PHONE#>");';
CMD_SEND_CONTACT
= 'window.WAPI.sendContact("<#PHONE#>", "<#CONTACT#>")';
CMD_SEND_MSG =
'window.WAPI.sendMessageToID("<#PHONE#>","<#MSG#>")';
CMD_SEND_MSG_BASE64 =
'window.WAPI.sendImage("<#MSG#>", "<#PHONE#>", "<#FILENAME#>", "<#CAPTION#>")';
CMD_GET_QRCODE =
'var _qrCode = document.getElementsByTagName("canvas")[0].toDataURL("image/png");' + LineEnding +
'console.log(JSON.stringify({"name":"getQrCode","result":{_qrCode}}));';
CMD_GET_BATTERY_LEVEL =
'window.WAPI.getBatteryLevel();';
CMD_GET_UNREAD_MESSAGES =
'window.WAPI.getUnreadMessages(includeMe="True", includeNotifications="True", use_unread_count="True");';
CMD_GET_ALL_GROUPS =
'window.WAPI.getAllGroups();';
CMD_GET_ALL_CONTACTS =
'window.WAPI.getAllContacts();';
CMD_GET_ALL_CHATS =
'window.WAPI.getAllChats();';
CMD_LOGOUT =
'localStorage.clear(); location.reload();';
CMD_READ_MSG =
'window.WAPI.sendSeen("<#PHONE#>")';
resourcestring
EXCEPT_CEF_APP =
'Component GlobalCEFApp has not been initialized in your application';
EXCEPT_CEF_BROWSER =
'Error creating browser in CEF';
EXCEPT_CEF_CONNECT =
'You are not connected to the service server';
EXCEPT_CEF_VERSION =
'Your CEF4 version is not compatible, please update your library at https://github.com/salvadordf/CEF4Delphi'
+ LineEnding + 'Required version: %s' + LineEnding + 'Identified version: %s';
EXCEPT_JS_UNKNOWN = 'Unknown wbot.js return';
EXCEPT_FILE_NOFOUND = '%s file not found';
QRCODE_LOADING = 'Loading QRCode...';
QRCODE_SUCCESS = 'Point your phone now!';
implementation
end.