feature: support init db in admin portal (#658)

This commit is contained in:
Dream Hunter
2025-05-20 17:45:55 +08:00
committed by GitHub
parent 272b624b9b
commit 50326bcc98
15 changed files with 1897 additions and 1809 deletions

View File

@@ -101,7 +101,10 @@ export function newTelegramBot(c: Context<HonoCustomType>, token: string): Teleg
const res = await tgUserNewAddress(c, userId.toString(), address);
return await ctx.reply(`创建地址成功:\n`
+ `地址: ${res.address}\n`
+ `凭证: ${res.jwt}\n`
+ `凭证: \`${res.jwt}\`\n`,
{
parse_mode: "Markdown"
}
);
} catch (e) {
return await ctx.reply(`创建地址失败: ${(e as Error).message}`);