diff --git a/src/modules/mx-space/index.ts b/src/modules/mx-space/index.ts index 62500b5..ee0752d 100644 --- a/src/modules/mx-space/index.ts +++ b/src/modules/mx-space/index.ts @@ -62,7 +62,10 @@ async function bindEvents(tgBot: Telegraf) { : `${ctx.from.first_name}(${ctx.from.id})` ctx.sendMessage(`欢迎新大佬 ${identifier} \n\n${hitokoto}`, { parse_mode: 'MarkdownV2', - reply_to_message_id: ctx.message.message_id, + + reply_parameters: { + message_id: ctx.message.message_id, + }, }) }) @@ -151,7 +154,9 @@ async function bindCommands(tgBot: Telegraf) { const result = schema.safeParse({ type, offset: +offset }) if (!result.success) { ctx.reply(result.error.issues.map((v) => v.message).join('\n'), { - reply_to_message_id: ctx.message.message_id, + reply_parameters: { + message_id: ctx.message.message_id, + }, }) return } diff --git a/src/server.ts b/src/server.ts index d36c75f..717b93e 100644 --- a/src/server.ts +++ b/src/server.ts @@ -24,7 +24,7 @@ void app.listen({ host: process.env.SERVER_HOSTNAME ?? '127.0.0.1', }) -app.ready((err: Error) => { +app.ready((err) => { if (err) { app.log.error(err) process.exit(1)