Skip to content

Commit

Permalink
revert (UsergeTeam#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Apr 23, 2021
1 parent a78d3b8 commit 0ca6509
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions userge/plugins/utils/telegraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# All rights reserved.

import os
from urllib.parse import quote

from PIL import Image
from telegraph import upload_file
Expand Down Expand Up @@ -68,7 +67,7 @@ async def telegraph_(message: Message):
else:
text = content
header = "Pasted content by @theuserge"
t_url = await pool.run_in_thread(post_to_telegraph)(header, quote(text))
t_url = await pool.run_in_thread(post_to_telegraph)(header, text)
jv_text = f"**[Here Your Telegra.ph Link!]({t_url})**"
await message.edit(text=jv_text, disable_web_page_preview=True)
return
Expand Down

0 comments on commit 0ca6509

Please sign in to comment.