Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
a42c137
1
Parent(s):
2c0d2ec
Update utils.py
Browse files- Powers/plugins/utils.py +3 -3
Powers/plugins/utils.py
CHANGED
@@ -265,14 +265,14 @@ async def paste(content: str):
|
|
265 |
async def paste_func(_, message: Message):
|
266 |
if not message.reply_to_message:
|
267 |
content = message.text.split(None, 1)[1]
|
268 |
-
|
|
|
|
|
269 |
if not r.text and not r.document:
|
270 |
return await message.reply_text("Only text and documents are supported")
|
271 |
|
272 |
m = await message.reply_text("Pasting...")
|
273 |
|
274 |
-
r = message.reply_to_message
|
275 |
-
|
276 |
if r.text:
|
277 |
content = str(r.text)
|
278 |
if r.document:
|
|
|
265 |
async def paste_func(_, message: Message):
|
266 |
if not message.reply_to_message:
|
267 |
content = message.text.split(None, 1)[1]
|
268 |
+
|
269 |
+
r = message.reply_to_message
|
270 |
+
|
271 |
if not r.text and not r.document:
|
272 |
return await message.reply_text("Only text and documents are supported")
|
273 |
|
274 |
m = await message.reply_text("Pasting...")
|
275 |
|
|
|
|
|
276 |
if r.text:
|
277 |
content = str(r.text)
|
278 |
if r.document:
|