Skip to content

Commit 0743787

Browse files
authored
Update sendkey.ts
add DOMAIN_URL
1 parent dc6dbb5 commit 0743787

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/commands/sendkey.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const md5 = require('md5');
2-
const VERCEL_URL = process.env.VERCEL_URL || '';
2+
const VERCEL_URL = process.env.DOMAIN_URL || process.env.VERCEL_URL || '';
33
const TCKEY = process.env.TCKEY;
44

55
const replyToMessage = (ctx: any, messageId: string, string: string) =>
@@ -20,8 +20,7 @@ const sendkey = () => (ctx: any) => {
2020
ctx,
2121
messageId,
2222
`${userName} , Your sendkey is 🔑 ${sendkey} \n
23-
🚀 Use follow url to send message : \n
24-
${site_url}/api/send?sendkey=<sendkey>&text=<text>`,
23+
🚀 Use follow url to send message : \n ${site_url}/api/send?sendkey=<sendkey>&text=<text>`,
2524
);
2625
};
2726

0 commit comments

Comments
 (0)