Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
341e197
1
Parent(s):
38cf8c3
Update utils.py
Browse files- Powers/plugins/utils.py +2 -2
Powers/plugins/utils.py
CHANGED
@@ -281,7 +281,7 @@ async def paste_func(_, message: Message):
|
|
281 |
link = await paste(content)
|
282 |
kb = [[InlineKeyboardButton(text="Paste Link ", url=link)]]
|
283 |
try:
|
284 |
-
if
|
285 |
await message.reply_photo(
|
286 |
photo=link,
|
287 |
quote=False,
|
@@ -297,7 +297,7 @@ async def paste_func(_, message: Message):
|
|
297 |
)
|
298 |
await m.delete()
|
299 |
except Exception:
|
300 |
-
await m.
|
301 |
"Here is the link of the document....",
|
302 |
reply_markup=InlineKeyboardMarkup(kb),
|
303 |
)
|
|
|
281 |
link = await paste(content)
|
282 |
kb = [[InlineKeyboardButton(text="Paste Link ", url=link)]]
|
283 |
try:
|
284 |
+
if message.from_user.is_bot:
|
285 |
await message.reply_photo(
|
286 |
photo=link,
|
287 |
quote=False,
|
|
|
297 |
)
|
298 |
await m.delete()
|
299 |
except Exception:
|
300 |
+
await m.edit_text(
|
301 |
"Here is the link of the document....",
|
302 |
reply_markup=InlineKeyboardMarkup(kb),
|
303 |
)
|