mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-08 21:04:50 +00:00
Learn Pagination
This commit is contained in:
parent
f3f5f250fe
commit
8b26d42d9a
1 changed files with 5 additions and 3 deletions
|
|
@ -32,11 +32,13 @@ async def getDatalk21(chat_id, message_id, kueri, CurrentPage):
|
|||
index = int(CurrentPage - 1)
|
||||
PageLen = len(res)
|
||||
|
||||
msgs = ""
|
||||
for c, i in enumerate(res[index], start=1):
|
||||
msgs += f"<b>{c}. <a href='{i['link']}'>{i['judul']}</a></b>\n<b>Category:</b> <code>{i['kategori']}</code>\n"
|
||||
|
||||
lkResult = (
|
||||
f"**Tes of {kueri}**\n"
|
||||
f"{res[index]['judul']}\n\n"
|
||||
"**📌 Link**\n"
|
||||
f"__{res[index]['link']}__"
|
||||
f"{msgs}\n\n"
|
||||
)
|
||||
|
||||
IGNORE_CHAR = "[]"
|
||||
|
|
|
|||
Loading…
Reference in a new issue