Python inline keyboard pagination for Telegram Bot API.
Project description
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,
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ptb_pagination-0.0.5.tar.gz.
File metadata
- Download URL: ptb_pagination-0.0.5.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d741380fd5eddf674154113c77c20558bd3e93f57726d6a884a5c108238ea409
|
|
| MD5 |
0148723deef067859893ccd73c5ed472
|
|
| BLAKE2b-256 |
745e53f778893c2cb1da29d01de5b5dabc9c6c296780a45a534481e8e9db24f1
|
File details
Details for the file ptb_pagination-0.0.5-py3-none-any.whl.
File metadata
- Download URL: ptb_pagination-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca7a53768b924edd0bc1e378aaf380eebc1eea7771f51a95e695d259112010db
|
|
| MD5 |
5c8fe2599aa001a7a8bac6ba1435e534
|
|
| BLAKE2b-256 |
d6ec688db7da449006e64857c4a014598eb7101d0d504edd4ca2ba265ab030bc
|