File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments