{"id":34031031,"url":"https://github.com/ksinn/python-telegram-bot-pagination","last_synced_at":"2026-03-27T04:09:10.559Z","repository":{"id":40271417,"uuid":"258795801","full_name":"ksinn/python-telegram-bot-pagination","owner":"ksinn","description":"Python inline keyboard pagination for Telegram Bot API","archived":false,"fork":false,"pushed_at":"2023-10-28T17:40:36.000Z","size":120,"stargazers_count":111,"open_issues_count":6,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-15T08:22:58.608Z","etag":null,"topics":["bot","inline-keyboard","keyboard","pagination","paginator","python","telegram","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksinn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-25T14:28:42.000Z","updated_at":"2025-10-28T20:17:52.000Z","dependencies_parsed_at":"2024-06-19T02:50:56.780Z","dependency_job_id":"3d43d140-c28c-4cbe-883d-51828eadf702","html_url":"https://github.com/ksinn/python-telegram-bot-pagination","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"b4db759a7ef411a89c23098fffaa3d49bc17d075"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ksinn/python-telegram-bot-pagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksinn%2Fpython-telegram-bot-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksinn%2Fpython-telegram-bot-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksinn%2Fpython-telegram-bot-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksinn%2Fpython-telegram-bot-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksinn","download_url":"https://codeload.github.com/ksinn/python-telegram-bot-pagination/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksinn%2Fpython-telegram-bot-pagination/sbom","scorecard":{"id":571399,"data":{"date":"2025-08-11","repo":{"name":"github.com/ksinn/python-telegram-bot-pagination","commit":"b4db759a7ef411a89c23098fffaa3d49bc17d075"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T16:26:55.351Z","repository_id":40271417,"created_at":"2025-08-20T16:26:55.351Z","updated_at":"2025-08-20T16:26:55.351Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","inline-keyboard","keyboard","pagination","paginator","python","telegram","telegram-bot","telegram-bot-api"],"created_at":"2025-12-13T18:05:05.393Z","updated_at":"2026-03-27T04:09:10.553Z","avatar_url":"https://github.com/ksinn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-telegram-bot-pagination\n\n[![Download Month](https://img.shields.io/pypi/v/python-telegram-bot-pagination.svg)](https://pypi.python.org/pypi/python-telegram-bot-pagination)\n[![Build Status](https://travis-ci.com/ksinn/python-telegram-bot-pagination.svg?branch=master)](https://travis-ci.com/ksinn/python-telegram-bot-pagination)\n\nProvide easy way for create number pagination with inline keyboard for telegram bot on python.\n\n[Example](https://github.com/ksinn/python-telegram-bot-pagination/blob/master/examples/example.py) with [pyTelegramBotAPI](https://github.com/eternnoir/pyTelegramBotAPI)\n\n[Example](https://github.com/ksinn/python-telegram-bot-pagination/blob/master/examples/example2.py) with [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot)\n\n![](https://github.com/ksinn/python-telegram-bot-pagination/raw/master/examples/media/ex1.png)  ![](https://github.com/ksinn/python-telegram-bot-pagination/raw/master/examples/media/f1.jpg)\n\n* [Installation.](#installation)\n* [Usage.](#usage)\n* [Button render controlling.](#button-render-controlling)\n* [Adding extra button.](#adding-extra-button)\n\n#### Installation\n\n    pip install python-telegram-bot-pagination\n\n#### Usage\n        from telegram_bot_pagination import InlineKeyboardPaginator\n\n        paginator = InlineKeyboardPaginator(\n            page_count,\n            current_page=page,\n            data_pattern='page#{page}'\n        )\n\n        bot.send_message(\n            chat_id,\n            text,\n            reply_markup=paginator.markup,\n        )\n\n\nInit arguments:\n* page_count - integer, total 1-based pages count.\n* current_page - integer, 1-based current page. Default 1\n* data_pattern - string with python style formatting named argument 'page'. Used for generate callback data for button. Default '{page}'\n\nProperties:\n* markup - json object for [InlineKeyboardMarkup](https://core.telegram.org/bots/api#inlinekeyboardmarkup) TelegramAPI type\n* keyboard - array of button's dist \n\n#### Button render controlling\nFor edit button render, use paginator object properties:\n\n* first_page_label\n* previous_page_label\n* current_page_label\n* next_page_label\n* last_page_label\n\nAll of them can by python style formatting string with one arg, or simple string.\n\nFor example:\n\n    class MyPaginator(InlineKeyboardPaginator):\n        first_page_label = '\u003c\u003c'\n        previous_page_label = '\u003c'\n        current_page_label = '-{}-'\n        next_page_label = '\u003e'\n        last_page_label = '\u003e\u003e'\n\n    paginator = MyPaginator(page_count)\n\nResult:\n\n![](https://github.com/ksinn/python-telegram-bot-pagination/raw/master/examples/media/m2.jpg)\n\n#### Adding extra button\nFor adding button line before and after pagination use methods:\n\n* add_before(*args)\n* add_after(*args)\n\nEach argument mast provide property 'text' and 'callback_data'\n\nFor example:\n\n    paginator.add_before(\n        InlineKeyboardButton('Like', callback_data='like#{}'.format(page)),\n        InlineKeyboardButton('Dislike', callback_data='dislike#{}'.format(page))\n    )\n    paginator.add_after(InlineKeyboardButton('Go back', callback_data='back'))\n\nResult:\n\n![](https://github.com/ksinn/python-telegram-bot-pagination/raw/master/examples/media/ex1.png)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksinn%2Fpython-telegram-bot-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksinn%2Fpython-telegram-bot-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksinn%2Fpython-telegram-bot-pagination/lists"}