fix: Update GIF data handling in send_tenor_gif function

This commit is contained in:
Slipstream 2025-05-28 15:21:02 -06:00
parent 7fc217806c
commit a0caf07e76
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -3063,7 +3063,7 @@ async def send_tenor_gif(cog: commands.Cog, query: str, limit: int = 8) -> Dict[
gif_parts.append({
"index": i,
"url": gif_url,
"part": types.Part.from_bytes(data=gif_data, mime_type="image/gif")
"part": types.Part(inline_data=types.Blob(data=gif_data, mime_type="image/gif"))
})
else:
print(f"Failed to download GIF {i}: {response.status}")