Skip to content

Commit 39bcb5a

Browse files
committed
reply without sending the photo back
1 parent 303d5af commit 39bcb5a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/worker/src/worker.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ export default {
147147
}
148148
}
149149

150-
const id = crypto.randomUUID();
151-
await env.R2.put(id, (response as unknown as { response: string }).response);
152-
await bot.replyPhoto(file_id, (response as unknown as { response: string }).response);
153-
ctx.waitUntil(
154-
wrapPromise(async () => {
155-
await env.R2.delete(id);
156-
}, 500),
157-
);
150+
// const id = crypto.randomUUID();
151+
// await env.R2.put(id, (response as unknown as { response: string }).response);
152+
await bot.reply((response as unknown as { response: string }).response);
153+
// ctx.waitUntil(
154+
// wrapPromise(async () => {
155+
// await env.R2.delete(id);
156+
// }, 500),
157+
// );
158158
return new Response('ok');
159159
})
160160
.on('photo', async (bot: TelegramExecutionContext) => {

0 commit comments

Comments
 (0)