Update webshot.py

This commit is contained in:
Norielle Cruz
2023-08-05 04:15:01 +08:00
committed by GitHub
parent 66be689e28
commit c4f5f4289d

View File

@@ -22,4 +22,10 @@ class WebshotPlugin(Plugin):
}] }]
async def execute(self, function_name, **kwargs) -> Dict: async def execute(self, function_name, **kwargs) -> Dict:
return {'result': f'https://image.thum.io/get/maxAge/12/width/720/{kwargs["url"]}'} return {
'direct_result': {
'kind': 'photo',
'format': 'url',
'value': f'https://image.thum.io/get/maxAge/12/width/720/{kwargs["url"]}'
}
}