mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-22 15:14:54 +01:00
Update webshot.py
This commit is contained in:
@@ -22,4 +22,10 @@ class WebshotPlugin(Plugin):
|
||||
}]
|
||||
|
||||
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"]}'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user