Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
647d44c
1
Parent(s):
c186389
.....
Browse files- Powers/plugins/utils.py +2 -2
Powers/plugins/utils.py
CHANGED
|
@@ -256,15 +256,15 @@ BASE = "https://pasty.lus.pm/"
|
|
| 256 |
@Gojo.on_message(command("paste"))
|
| 257 |
async def paste_func(_, message: Message):
|
| 258 |
r = message.reply_to_message
|
|
|
|
| 259 |
|
| 260 |
if not r:
|
| 261 |
content = message.text.split(None, 1)[1]
|
| 262 |
|
| 263 |
if r:
|
| 264 |
if not r.text and not r.document:
|
| 265 |
-
return await
|
| 266 |
|
| 267 |
-
m = await message.reply_text("Pasting...")
|
| 268 |
|
| 269 |
if r.text:
|
| 270 |
content = str(r.text)
|
|
|
|
| 256 |
@Gojo.on_message(command("paste"))
|
| 257 |
async def paste_func(_, message: Message):
|
| 258 |
r = message.reply_to_message
|
| 259 |
+
m = await message.reply_text("Pasting...")
|
| 260 |
|
| 261 |
if not r:
|
| 262 |
content = message.text.split(None, 1)[1]
|
| 263 |
|
| 264 |
if r:
|
| 265 |
if not r.text and not r.document:
|
| 266 |
+
return await m.edit("Only text and documents are supported")
|
| 267 |
|
|
|
|
| 268 |
|
| 269 |
if r.text:
|
| 270 |
content = str(r.text)
|