Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multipage answer records counter #7

Open
kir0st opened this issue Apr 20, 2023 · 0 comments
Open

Multipage answer records counter #7

kir0st opened this issue Apr 20, 2023 · 0 comments

Comments

@kir0st
Copy link

kir0st commented Apr 20, 2023

https://github.com/usher2/u2ckbot/blob/master/answers.go, line 519
res += fmt.Sprintf("\u2195 результаты с *%d* по *%d* из *%d*\n", offset+1, offset+PRINT_LIMIT, len(a))

need add check for case:
if (offset+PRINT_LIMIT) more than len(a)

Example:
/d_jhhn57s82mg14 contains 9 recodrs, page 2:

результаты с 6 по 10 из 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant