-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: remove identifier of listen() and ask() in favor of new kwargs * refactor: split classes into new files, extend from original classes * refactor: rename patch -> patch_into, patchable -> should_patch * style: format with ruff * feat(precedence): return most specific listener * refactor!: rename get_single_listener -> get_matching_listener, get_many_listeners -> get_many_matching_listeners * refactor: improve variable names and only remove checking attribute from null listener * refactor: transform config.py into package pyromod.config * chore!: remove handlers from pyromod exports * docs: bring new docs with docsify * docs: update README * Create CNAME * Delete CNAME * docs: add missing backtick * Create CNAME * fix: fix order of positional args in bound method ask * refactor(ask)!: rename request to sent_message * feat(ask): send message only if text is not empty * refactor: search for message_id (pyrogram v1) if message.id is not found * refactor: only use query.message.chat.id if both message and chat are not null * supports pyrogram v1 (#11) * supports pyrogram v1 * Update listen.py forgot, delete comma --------- Co-authored-by: Cezar H <[email protected]> * request to sent_message (#13) I think using the sent_message statement instead of request is much more descriptive * ask function will behave like listen if text is empty (#14) Co-authored-by: Cezar H <[email protected]> * Update for filters and if from_user is None (#17) * Update listen.py * Update listen.py * Update utils.py * Changes to be committed: modified: pyromod/listen/listen.py modified: pyromod/utils/utils.py * Changes to be committed: modified: pyromod/utils/utils.py * Changes to be committed: modified: pyromod/utils/utils.py * Changes to be committed: modified: pyromod/utils/utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Changes to be committed: modified: pyromod/listen/listen.py * Update pyproject.toml * Update poetry.lock * Update poetry.lock * Update pyproject.toml * Update listen.py * Update listen.py --------- Co-authored-by: Cezar H <[email protected]> * feat: remove identifier of listen() and ask() in favor of new kwargs * refactor: split classes into new files, extend from original classes * refactor: rename patch -> patch_into, patchable -> should_patch * refactor: rename patch -> patch_into * style: format with ruff * chore: remaking many changes that got undone after the merge * refactor!: rename get_single_listener -> get_matching_listener, get_many_listeners -> get_many_matching_listeners * feat(precedence): return most specific listener * fix: replace @should_patch -> @should_patch() * fix: use Dict and List from typing instead of builtin --------- Co-authored-by: Tofik Denianto <[email protected]> Co-authored-by: Eikosa <[email protected]> Co-authored-by: Jusidama Bot <[email protected]>
- Loading branch information
1 parent
e3981fe
commit 9dbb50e
Showing
50 changed files
with
1,633 additions
and
679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pyromod.pauxis.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# pyromod | ||
|
||
[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=flat&logo=telegram&logoColor=white)](https://t.me/pyromodchat) | ||
![GitHub release (latest by date)](https://img.shields.io/github/v/release/usernein/pyromod) | ||
[![Downloads](https://static.pepy.tech/badge/pyromod)](https://pepy.tech/project/pyromod) | ||
[![Downloads](https://static.pepy.tech/badge/pyromod/month)](https://pepy.tech/project/pyromod) | ||
|
||
pyromod is a versatile Python add-on for the Pyrogram library, designed to make developing Telegram bots faster and more | ||
efficient. | ||
|
||
It's based on **monkeypatching**, which means it works together with Pyrogram, 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 is updated. | ||
|
||
Whether you're building a simple chatbot or a complex form to get multiple responses from the user, pyromod has you | ||
covered. It enhances Pyrogram with a range | ||
of advanced features, simplifies conversation handling, and offers a high degree of customizability. | ||
|
||
## Key Features | ||
|
||
- **Effortless Bot Development:** pyromod 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 pyromod's inline keyboard | ||
helper functions. | ||
|
||
- **User-Friendly Pagination:** Enhance the user experience by providing easy navigation tools with the pyromod's | ||
pagination | ||
helpers. | ||
|
||
- **Highly Customizable:** pyromod's configuration options let you customize its behavior to meet your specific project | ||
requirements. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- docs/_sidebar.md --> | ||
|
||
- **Home** | ||
- [Introduction](/#pyromod) | ||
- [Key features](/#key-features) | ||
- **Get Started** | ||
- [Installation](/get-started/installation.md) | ||
- [Initializing pyromod](/get-started/initialization.md) | ||
- [Configuration](/get-started/configuration.md) | ||
- [Examples](/get-started/examples.md) | ||
- **API Reference** | ||
- [pyromod](/pyromod/index) | ||
- [pyromod.config](/pyromod/config/index) | ||
- pyromod.listen | ||
- [Client](/pyromod/listen/client) | ||
- [Message](/pyromod/listen/message) | ||
- [User](/pyromod/listen/user) | ||
- [Chat](/pyromod/listen/chat) | ||
- pyromod.exceptions | ||
- [ListenerTimeout](/pyromod/exceptions/listener-timeout) | ||
- [ListenerStopped](/pyromod/exceptions/listener-stopped) | ||
- [pyromod.helpers](/pyromod/helpers/index) | ||
- pyromod.types | ||
- [Identifier](/pyromod/types/identifier) | ||
- [ListenerTypes](/pyromod/types/listener-types) | ||
- [Listener](/pyromod/types/listener) | ||
- pyromod.utils | ||
- [pyromod.utils.patch](/pyromod/utils/patch) | ||
- pyromod.nav | ||
- [Pagination](/pyromod/nav/pagination) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# pyromod <small>3.0.0</small> | ||
|
||
> A collection of monkeypatched tools for Pyrogram. | ||
- Simplifies bot development with Pyrogram. | ||
- Advanced features for conversation management. | ||
- Many tools that enhance the user experience. | ||
|
||
[GitHub](https://github.com/usernein/pyromod) | ||
[Get Started](#pyromod) |
Oops, something went wrong.