Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ptb-pagination

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ptb-pagination

Python inline keyboard pagination for Telegram Bot API.

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

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,
)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc