Update pypi_search.py

Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
Yasir Aris M 2025-01-12 11:59:32 +07:00 committed by GitHub
parent b374614cce
commit fbed06d82b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,7 @@ async def pypi_s(_, ctx: Message):
keyboard = InlineKeyboard() keyboard = InlineKeyboard()
keyboard.row(InlineButton("❌ Close", f"close#{ctx.from_user.id}")) keyboard.row(InlineButton("❌ Close", f"close#{ctx.from_user.id}"))
try: try:
await pesan.edit_msg(pypires, reply_markup=keyboard) await pesan.edit_msg(msg, reply_markup=keyboard)
except MessageTooLong: except MessageTooLong:
url = await post_to_telegraph(False, f"{pkgname}-detail", msg) url = await post_to_telegraph(False, f"{pkgname}-detail", msg)
await pesan.edit_msg(f"Result is too long:\n{url}", reply_markup=keyboard) await pesan.edit_msg(f"Result is too long:\n{url}", reply_markup=keyboard)