mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-23 15:44:54 +01:00
image type default value
This commit is contained in:
@@ -37,7 +37,7 @@ class ImageSearchPlugin(Plugin):
|
||||
kwargs['query'],
|
||||
region="wt-wt",
|
||||
safesearch='off',
|
||||
type_image=kwargs['type'],
|
||||
type_image=kwargs.get('type', 'photo'),
|
||||
)
|
||||
results = list(islice(ddgs_images_gen, 1))
|
||||
return {"result": results[0]["image"]}
|
||||
|
||||
Reference in New Issue
Block a user