Skip to main content

ptb-pagination

Python inline keyboard pagination for Telegram Bot API.

Provide an easy way to create number pagination with Telegram Inline Keyboards for python-telegram-bot.

Telegram Pagination Docs Example

This project is very based on python-telegram-bot-pagination, thanks ksinn.

The main difference it's supposed to only work with the python-telegram-bot library and provide full support to Arbitrary callback_data.

Installation

pip install ptb-pagination

Usage

from ptb_pagination import InlineKeyboardPaginator

paginator = InlineKeyboardPaginator(
    page_count,
    current_page=page,
    data_pattern='page#{page}'
)

bot.send_message(
    chat_id,
    text,
    reply_markup=paginator.markup,
)

Release files for ptb-pagination 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptb-pagination 0.0.5
File Size Uploaded
ptb_pagination-0.0.5.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ptb-pagination 0.0.5
File Interpreter ABI Platform
ptb_pagination-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / ptb_pagination-0.0.5.tar.gz

Download URL ptb_pagination-0.0.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d741380fd5eddf674154113c77c20558bd3e93f57726d6a884a5c108238ea409
BLAKE2b-256 checksum
How to use checksums
745e53f778893c2cb1da29d01de5b5dabc9c6c296780a45a534481e8e9db24f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / ptb_pagination-0.0.5-py3-none-any.whl

Download URL ptb_pagination-0.0.5-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca7a53768b924edd0bc1e378aaf380eebc1eea7771f51a95e695d259112010db
BLAKE2b-256 checksum
How to use checksums
d6ec688db7da449006e64857c4a014598eb7101d0d504edd4ca2ba265ab030bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page