Archived
1
0
Fork 0

Sc article instead

This commit is contained in:
Dianliang233 2023-03-18 22:11:49 +08:00
parent 1af27b1285
commit 099ea7c8ea

View file

@ -61,5 +61,5 @@ async def _(msg: Bot.MessageSession):
'''
pic = await download_to_cache(web_render_local + 'element_screenshot', method='POST', headers={
'Content-Type': 'application/json',
}, post_data=json.dumps({'url': f'https://static-tweet.vercel.app/{tweet_id}', 'css': css, 'width': 1000, 'mw': False, 'element': 'main' }), request_private_ip=True)
}, post_data=json.dumps({'url': f'https://static-tweet.vercel.app/{tweet_id}', 'css': css, 'mw': False, 'element': 'article' }), request_private_ip=True)
await msg.finish([Image(pic), f"https://twitter.com/{res_json['pageProps']['tweet']['user']['screen_name']}/status/{tweet_id}"])