Skip to main content

kurimod

Fork of pyromod that targets the actively maintained kurigram fork of Pyrogram.

Kurimod keeps the original pyromod conversation helpers while depending on kurigram instead of the archived pyrogram release line. Install it with:

pip install kurimod

The package pulls in the latest kurigram automatically. Although the dependency installs under the name kurigram, it still exposes the pyrogram import path so existing user code can continue to import pyrogram as before.

Kurimod is a versatile Python add-on for the Pyrogram API (through Kurigram), designed to make developing Telegram bots faster and more efficient. It's based on monkeypatching, which means it works together with Pyrogram/Kurigram, rather than being a fork or modified version. It adds features to Pyrogram classes on the go, so you don't need to update it every time Pyrogram/Kurigram is updated.

Whether you're building a simple chatbot or a complex form to get multiple responses from the user, kurimod has you covered. It enhances Pyrogram with a range of advanced features, simplifies conversation handling, and offers a high degree of customizability.

Documentation

You can find the full documentation at pyromod.pauxis.dev.

Also feel free to ask any kurimod-related questions on our Telegram group.

Key Features

  • Effortless Bot Development: kurimod streamlines the process of building conversational Telegram bots, saving you time and effort during development.

  • Advanced Conversation Management: Managing conversations with users is made easier, allowing you to create dynamic and interactive interactions much easier, without having to save states anywhere, by leveraging the power of async/await syntax.

  • Effortless Inline Keyboards Creation: Creating inline keyboards is easier than ever with kurimod's inline keyboard helper functions.

  • User-Friendly Pagination: Enhance the user experience by providing easy navigation tools with the kurimod's pagination helpers.

  • Highly Customizable: kurimod's configuration options let you customize its behavior to meet your specific project requirements.

Examples

Awaiting a single message from a specific chat:

response = await client.listen(chat_id=chat_id)

Awaiting a single message from a specific user in a specific chat:

response = await client.listen(chat_id=chat_id, user_id=user_id)

Asking the user a question then await for the response:

response = await client.ask(chat_id=chat_id, text='What is your name?')

Asking the user a question then await for the response, with a timeout:

try:
    response = await client.ask(chat_id=chat_id, text='What is your name?', timeout=10)
except ListenerTimeout:
    await message.reply('You took too long to answer.')

Full handler example, getting user's name and age with bound method Chat.ask:

from kurimod import Client, Message
from pyrogram import filters


@Client.on_message(filters.command('form'))
async def on_form(client: Client, message: Message):
    chat = message.chat

    name = await chat.ask('What is your name?', filters=filters.text)
    age = await chat.ask('What is your age?', filters=filters.text)

    await message.reply(f'Your name is {name.text} and you are {age.text} years old.')

Easier inline keyboard creation:

from kurimod.helpers import ikb

keyboard = ikb([
    [('Button 1', 'callback_data_1'), ('Button 2', 'callback_data_2')],
    [('Another button', 't.me/pyromodchat', 'url')]
])

Initialization

To initialize kurimod, on the file that creates the client instance, simply import the Client class from kurimod instead of pyrogram:

from kurimod import Client

And that's all! You can still use the Client class as you would normally do with Pyrogram, but now having all the extra features.

You don't need to change the imports on the plugins files. Even by importing Client from pyrogram, the kurimod features will be available anyway. In order to monkeyatch kurimod features successfully, it's just required that the first Client class imported to your project code should be from kurimod. Then all the other future Client instances will be patched automatically.

You just need to import from kurimod if you want your IDE to recognize and suggest the extra features based on kurimod.Client type.

Contributing

We welcome contributions from the community to make kurimod even better.

Feel free to open issues, submit pull requests, or contribute in any way that aligns with our goals.

This project may include snippets of Pyrogram code

Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)

Metadata

Release files for kurimod 3.3.1

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

Source distribution (sdist)

Source distribution for kurimod 3.3.1
File Size Uploaded Provenance Actions
kurimod-3.3.1.tar.gz 420.5 kB With provenance Details for kurimod-3.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kurimod 3.3.1
File Interpreter ABI Platform Actions
kurimod-3.3.1-py3-none-any.whl Python 3 none any Details for kurimod-3.3.1-py3-none-any.whl

Total release size: 458.7 kB

Release files / kurimod-3.3.1.tar.gz

Download URL kurimod-3.3.1.tar.gz
Size 420.5 kB
Tags Source
SHA-256 checksum
How to use checksums
989768a6613bcf8b44ef38b4efea110d94bf28f603d05adbf0e11db5d88c8281
BLAKE2b-256 checksum
How to use checksums
bd1b3aea9d7e6222cdbe41a8ef44e36c5ec61f3738f5eb7a708a1947e36bc5e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Release files / kurimod-3.3.1-py3-none-any.whl

Download URL kurimod-3.3.1-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8facc2cb12a818d0f2a7edb4b5b6dcf8a402501ff87eaa8f3a8b94cd623929a8
BLAKE2b-256 checksum
How to use checksums
7cfc10e57267af2f81a316ad621fe6d7872aa87112203366926bc2e7846b3006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Security for kurimod 3.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kurimod-3.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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