Update pypi_search.py

Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
Yasir Aris M 2025-01-12 12:06:54 +07:00 committed by GitHub
parent 340fa29896
commit 41cfc85bc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,7 +83,7 @@ async def pypi_s(_, ctx: Message):
try:
await pesan.edit_msg(msg, reply_markup=keyboard)
except MessageTooLong:
url = await post_to_telegraph(False, f"{pkgname}-detail", msg)
url = await post_to_telegraph(False, f"{res['info'].get('name')} {res['info'].get('version', None)}-detail", msg)
await pesan.edit_msg(f"Result is too long:\n{url}", reply_markup=keyboard)