Spaces:
Paused
Paused
Update server.js
Browse files
server.js
CHANGED
|
@@ -59,6 +59,7 @@ function fetchInfo({ url }) {
|
|
| 59 |
|
| 60 |
bot.on('message', async(msg) => {
|
| 61 |
const cid = msg.chat.id
|
|
|
|
| 62 |
const regex = /(?:surl=|\/)([a-zA-Z0-9-_]+)$/
|
| 63 |
const match = url.match(regex)
|
| 64 |
if(!match) return
|
|
|
|
| 59 |
|
| 60 |
bot.on('message', async(msg) => {
|
| 61 |
const cid = msg.chat.id
|
| 62 |
+
const url = msg.text
|
| 63 |
const regex = /(?:surl=|\/)([a-zA-Z0-9-_]+)$/
|
| 64 |
const match = url.match(regex)
|
| 65 |
if(!match) return
|