Update Akeno/plugins/ping.py
Browse files- Akeno/plugins/ping.py +1 -8
Akeno/plugins/ping.py
CHANGED
@@ -124,14 +124,7 @@ async def custom_ping_handler(client: Client, message: Message):
|
|
124 |
f"{custom_owner} **Oᴡɴᴇʀ :** `{client.me.mention}`" % (duration)
|
125 |
)
|
126 |
try:
|
127 |
-
await lol.
|
128 |
-
media=InputMediaPhoto(
|
129 |
-
file_path,
|
130 |
-
caption=caption
|
131 |
-
)
|
132 |
-
)
|
133 |
-
except ChatSendPhotosForbidden:
|
134 |
-
return await lol.edit_text(caption)
|
135 |
except Exception as e:
|
136 |
await lol.edit_text(f"Error: {e}")
|
137 |
else:
|
|
|
124 |
f"{custom_owner} **Oᴡɴᴇʀ :** `{client.me.mention}`" % (duration)
|
125 |
)
|
126 |
try:
|
127 |
+
await lol.edit_text(caption)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
except Exception as e:
|
129 |
await lol.edit_text(f"Error: {e}")
|
130 |
else:
|