-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebhook.http
123 lines (87 loc) · 2.31 KB
/
webhook.http
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
GET https://api.telegram.org/bot{{token}}/getUpdates
###
GET https://api.telegram.org/bot{{token}}/getWebhook
Content-Type: application/x-www-form-urlencoded
###
POST https://api.telegram.org/bot{{token}}/setWebhook
Content-Type: application/x-www-form-urlencoded
url=https://quiplash.telegram.southroute.dev/webhook
###
POST https://api.telegram.org/bot{{token}}/deleteWebhook
Content-Type: application/x-www-form-urlencoded
drop_pending_updates=true
###
POST http://localhost:7878
Content-Type: application/json
{
"message": {
"from": {
"id": 1,
"is_bot": false,
"first_name": "test",
"last_name": "hi",
"username": "b"
},
"chat": {
"id": "1"
},
"text": "/new "
}
}
###
POST https://api.telegram.org/bot{{token}}/answerCallbackQuery HTTP/1.1
Host: api.telegram.org
Connection: close
Accept-Encoding: identity
chatId=\"1\"&text=\"Cannot start a new game, game already exists. Type /end to end current the game\"
###
POST https://api.telegram.org/bot{{token}}/sendMessage
Accept-Encoding: identity
Content-Type: application/x-www-form-urlencoded
chat_id=189409671&text=Add this bot to a group chat and send /new@QuiplashModeratorBot to start a new game in the chat!
###
POST https://api.telegram.org/bot{{token}}/sendMessage HTTP/1.1
Host: api.telegram.org
Connection: close
Content-Type: application/json
Accept-Encoding: identity
{
"chat_id": 189409671,
"text": "Click the Join button below \\nOnce everyone has joined, then type /begin to start the game\\nPlayers:\\nBrian"
}
###
POST https://api.telegram.org/bot{{token}}/sendMessage HTTP/1.1
Host: api.telegram.org
Connection: close
Content-Type: application/json
Accept-Encoding: identity
{"chat_id":"-359404575","text":"Cannot start a new game, game already exists. Type /end to end current the game"}
###
POST http://localhost:8081/app
Content-Type: application/json
{}
###
POST http://localhost:8000/app?group_id=1&token=u2q1
Content-Type: application/json
{
"answer": "abc"
}
###
GET http://localhost:8000/app?group_id=1&token=u2q1
Content-Type: application/json
###
POST http://localhost:8000/webhook
Content-Type: application/json
{
"message": {
"id": 1,
"text": "/begin",
"chat": {
"id": -1001130073327
},
"from": {
"id": 189409671,
"is_bot": false
}
}
}