Skip to content

Commit

Permalink
wordcloud: specify image name as telethon drops imghdr usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Oct 12, 2023
1 parent c3cf31f commit d431ef1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions luoxu_plugins/wordcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ async def generate_wordcloud(chat_id, chat_title, target_user, endtime, reply):
return

stream = io.BytesIO()
stream.name = 'wordcloud.png'
loop = asyncio.get_event_loop()
await loop.run_in_executor(None, gen_image, words, stream)
st3 = time.time()
Expand Down

0 comments on commit d431ef1

Please sign in to comment.