{"id":15575597,"url":"https://github.com/wiltonsr/ptb-pagination","last_synced_at":"2025-06-16T06:41:05.940Z","repository":{"id":208629903,"uuid":"722095099","full_name":"wiltonsr/ptb-pagination","owner":"wiltonsr","description":"Python inline keyboard pagination for Telegram Bot API","archived":false,"fork":false,"pushed_at":"2025-05-14T18:07:16.000Z","size":256,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T18:15:55.026Z","etag":null,"topics":["hacktoberfest","pagination","python-telegram-bot","telegram"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ptb-pagination/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiltonsr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-22T12:28:34.000Z","updated_at":"2025-05-14T18:07:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2e5f872-3f03-4978-8460-d7637fe4b59c","html_url":"https://github.com/wiltonsr/ptb-pagination","commit_stats":null,"previous_names":["wiltonsr/ptb-pagination"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wiltonsr/ptb-pagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiltonsr%2Fptb-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiltonsr%2Fptb-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiltonsr%2Fptb-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiltonsr%2Fptb-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiltonsr","download_url":"https://codeload.github.com/wiltonsr/ptb-pagination/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiltonsr%2Fptb-pagination/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259944796,"owners_count":22935684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hacktoberfest","pagination","python-telegram-bot","telegram"],"created_at":"2024-10-02T18:39:18.747Z","updated_at":"2025-06-16T06:41:05.909Z","avatar_url":"https://github.com/wiltonsr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ptb-pagination\n\nPython inline keyboard pagination for Telegram Bot API.\n\nProvide an easy way to create number pagination with [Telegram Inline Keyboards](https://core.telegram.org/bots/2-0-intro#new-inline-keyboards) for [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot).\n\n![Telegram Pagination Docs Example](https://core.telegram.org/file/811140217/1/NkRCCLeQZVc/17a804837802700ea4)\n\nThis project is very based on [python-telegram-bot-pagination](https://github.com/ksinn/python-telegram-bot-pagination), thanks [ksinn](https://github.com/ksinn/).\n\nThe main difference it's supposed to only work with the [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) library and provide full support to [Arbitrary callback_data](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Arbitrary-callback_data).\n\n## Installation\n\n```bash\npip install ptb-pagination\n```\n\n## Usage\n\n```python\nfrom ptb_pagination import InlineKeyboardPaginator\n\npaginator = InlineKeyboardPaginator(\n    page_count,\n    current_page=page,\n    data_pattern='page#{page}'\n)\n\nbot.send_message(\n    chat_id,\n    text,\n    reply_markup=paginator.markup,\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiltonsr%2Fptb-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiltonsr%2Fptb-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiltonsr%2Fptb-pagination/lists"}