Spaces:
Paused
Paused
epii-1
commited on
Commit
·
c5f59bc
1
Parent(s):
64fee2d
修改结构
Browse files
login.js
CHANGED
|
@@ -27,8 +27,8 @@ async function sendTelegramMessage(message) {
|
|
| 27 |
const url = `${telegramConfig.cloudflareWorkerUrl}/${telegramConfig.telegramBotToken}/sendMessage`;
|
| 28 |
try {
|
| 29 |
const response = await axios.post(url, {
|
| 30 |
-
chat_id: telegramConfig.telegramBotUserId,
|
| 31 |
-
text: message
|
| 32 |
}, {
|
| 33 |
headers: {
|
| 34 |
'X-Custom-Auth': telegramConfig.customAuthKey
|
|
|
|
| 27 |
const url = `${telegramConfig.cloudflareWorkerUrl}/${telegramConfig.telegramBotToken}/sendMessage`;
|
| 28 |
try {
|
| 29 |
const response = await axios.post(url, {
|
| 30 |
+
"chat_id": telegramConfig.telegramBotUserId,
|
| 31 |
+
"text": message
|
| 32 |
}, {
|
| 33 |
headers: {
|
| 34 |
'X-Custom-Auth': telegramConfig.customAuthKey
|