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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| ptb_pagination-0.0.5.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|