-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.js
42 lines (40 loc) · 1.05 KB
/
temp.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
export const handler = async(event) => {
// TODO implement
console.log(event)
const text = event["body"]["message"]["text"];
const response = {
statusCode: 200,
body: JSON.stringify('Hello from Lambda!'),
};
return response;
};``
export const testInput = {
"body": {
"update_id": 163246526,
"message": {
"message_id": 123,
"from": {
"id": 123456789,
"is_bot": false,
"first_name": "Bob",
"last_name": "The Builder",
"username": "BobTheBuilder"
},
"chat": {
"id": -1234567891234,
"title": "FriendsTeleBot",
"type": "supergroup"
},
"date": 1673537758,
"text": "/thisShouldWorkNow",
"entities": [
{
"offset": 0,
"length": 18,
"type": "bot_command"
}
]
}
}
};
handler(input);