File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,11 @@ export default {
160160 . on ( 'photo' , async ( bot : TelegramExecutionContext ) => {
161161 switch ( bot . update_type ) {
162162 case 'message' : {
163+ await bot . sendTyping ( ) ;
163164 const prompt = bot . update . message ?. text ?. toString ( ) ?? '' ;
164165 let photo : AiTextToImageOutput ;
165166 try {
166- photo = await env . AI . run ( '@cf/lykon/dreamshaper-8-lcm ' , { prompt } ) ;
167+ photo = await env . AI . run ( '@cf/stabilityai/stable-diffusion-xl-base-1.0 ' , { prompt } ) ;
167168 } catch ( e ) {
168169 console . log ( e ) ;
169170 await bot . reply ( `Error: ${ e as string } ` ) ;
@@ -184,7 +185,7 @@ export default {
184185 const prompt = bot . update . inline_query ?. query . toString ( ) . split ( ' ' ) . slice ( 1 ) . join ( ' ' ) ?? '' ;
185186 let photo : AiTextToImageOutput ;
186187 try {
187- photo = await env . AI . run ( '@cf/lykon/dreamshaper-8-lcm ' , { prompt } ) ;
188+ photo = await env . AI . run ( '@cf/stabilityai/stable-diffusion-xl-base-1.0 ' , { prompt } ) ;
188189 } catch ( e ) {
189190 console . log ( e ) ;
190191 await bot . reply ( `Error: ${ e as string } ` ) ;
You can’t perform that action at this time.
0 commit comments