-
Notifications
You must be signed in to change notification settings - Fork 54
/
Test.js
46 lines (39 loc) · 1.14 KB
/
Test.js
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
var testObject = {
message_id: 4620,
from_id: 539065210,
chat_id: -1001226042286,
new_chat_member_id: 605149962,
callback_query_id: "2315267451523235823",
text: "/admin welcome status on",
data: "notRobot:605149962",
};
var testNewMember = getNewMemberJoinJson(testObject);
var testGroupAdmin = getTextMessageJson(testObject);
var testCallback = getCallbackJson(testObject);
var testReply = getReplyTextMessageJson(testObject);
function debug() {
Const.telegramChatIdsColl += "Debug";
Const.telegramChatsColl += "Debug";
Const.updateTimeColl += "Debug";
Const.telegramChatUpdateTimeColl += "Debug";
Const.drawColl += "Debug";
Const.logColl += "Debug";
Const.contextColl += "Debug";
Const.groupSettingsColl += "Debug";
Const.toTelegram += "Debug";
Const.fromTelegram += "Debug";
var e = {};
e.postData = {};
e.postData.contents = testReply;
doPost(e);
}
function quickTest() {
var payload = {
"method": "sendMessage",
"chat_id": "@FengDraw",
"text": "Yes, will do",
"parse_mode": "markdown",
"disable_web_page_preview": false,
};
postTelegram(payload);
}