Spaces:
Running
Running
Captain Ezio
commited on
Commit
·
c32be54
1
Parent(s):
8e2ad48
Update utils.py
Browse files- Powers/plugins/utils.py +4 -6
Powers/plugins/utils.py
CHANGED
@@ -263,10 +263,8 @@ async def paste(content: str):
|
|
263 |
|
264 |
@Gojo.on_message(command("paste"))
|
265 |
async def paste_func(_, message: Message):
|
266 |
-
if
|
267 |
-
|
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")
|
@@ -307,8 +305,8 @@ async def paste_func(_, message: Message):
|
|
307 |
)
|
308 |
await m.delete()
|
309 |
except Exception:
|
310 |
-
await m.edit("Here's your paste", reply_markup=kb)
|
311 |
-
|
312 |
|
313 |
@Gojo.on_message(command("tr"))
|
314 |
async def tr(_, message):
|
|
|
263 |
|
264 |
@Gojo.on_message(command("paste"))
|
265 |
async def paste_func(_, message: Message):
|
266 |
+
if message.reply_to_message:
|
267 |
+
r = message.reply_to_message
|
|
|
|
|
268 |
|
269 |
if not r.text and not r.document:
|
270 |
return await message.reply_text("Only text and documents are supported")
|
|
|
305 |
)
|
306 |
await m.delete()
|
307 |
except Exception:
|
308 |
+
await m.edit("Here's your paste", reply_markup=InlineKeyboardMarkup(kb))
|
309 |
+
return
|
310 |
|
311 |
@Gojo.on_message(command("tr"))
|
312 |
async def tr(_, message):
|