fix: Update GIF data handling in send_tenor_gif function
This commit is contained in:
parent
7fc217806c
commit
a0caf07e76
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user