fix: telegram bot/miniapp bugs (#261)

This commit is contained in:
Dream Hunter
2024-05-21 22:45:48 +08:00
committed by GitHub
parent 2533257b68
commit 9ec11f7040
2 changed files with 21 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ async function email(message: ForwardableEmailMessage, env: Bindings, ctx: Execu
try {
await sendMailToTelegram(
{ env: env } as Context<HonoCustomType>,
message.to, rawEmail);
message.to, rawEmail, message_id);
} catch (error) {
console.log("send mail to telegram error", error);
}