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
ptb-pagination-0.0.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for ptb_pagination-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c68b6b0fdb3fbf0a81141cba2281cdc3bf5dc2e9f950ce3007f72378a273753f |
|
MD5 | 8414822f7938994332d1741aba51a5fc |
|
BLAKE2b-256 | 13923e7b7f6465955545303b10b48a4120256f783b5721d03eea15a145573300 |