🦙 MATE
The Easy Telegram Application Maker
pip install mate-wrapper
Welcome to MATE, the open source wrapper for the PythonTelegramBot wrapper that makes building telegram applications very easy and intuitive by adopting a minimal coding style!
Design
MATE is designed as a way to build telegram applications which involves using as little custom code as possible, relying on tested and safe solutions to do ~90% of the work while injecting custom logic where necessary.
It's components are also easily extensible and reusable to allow for a wide degree of flexibility.
There are 5 main types of components:
-
Prompts:
A Prompt is what is used to send messages to users, they support Markdown formatting, web previews, keyboards and variable insertion without writing any additional code other than the message itself! -
Getters
A Getter is what is used to get any input from the User, it supports anything from text to keyboard inputs and even photos! -
Handlers
A convenient way of abstracting away some complexity tied to the PythonTelegramBot wrapper and making the code more readable in the process! -
Chains
These Chains aren't of the binding kind! Chains let you chain together multiple functions (handlers, getters, custom functions or even other chains) in order to build complex user interactions using the least possible amount of custom code! -
Menus
Connect everything together in an easy way with Menus and the ready-made Panels & Buttons that come with them!
Simple example
Here's how a simple echo bot looks like!
from MateWrapper.bot import TelegramBot
from MateWrapper.handlers import TextHandler
from MateWrapper.prompts import Prompt
def main():
bot = TelegramBot("[Your token]", name="test")
bot.add_handler(TextHandler(Prompt("Hi {__name}, you said: {_text}")))
bot.start_and_idle()
if __name__ == "__main__":
main()
Pretty easy right? Take a look at the bots found in samples and see for yourself how easy it still is to make complex bots ;)
Docs
Read the documentation here!
Contributing
Feel free to contribute with any fixes/suggestions, I'll get to them as soon as i have time!
Metadata
Release files for mate-wrapper 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mate-wrapper-1.2.1.tar.gz | 15.9 kB | Without provenance | Details for mate-wrapper-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mate_wrapper-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for mate_wrapper-1.2.1-py3-none-any.whl |
Total release size: 36.9 kB
Release files / mate-wrapper-1.2.1.tar.gz
| Download URL | mate-wrapper-1.2.1.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38839eb4ce4aa946fa45a4987e249e2e87b8b541b0afa8dbc91040bd6c6b0ce9
|
|
BLAKE2b-256 checksum How to use checksums |
d8926963cd175e51be90ff7070802a2c67edfc1f1da8c1be165efd108ebca914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / mate_wrapper-1.2.1-py3-none-any.whl
| Download URL | mate_wrapper-1.2.1-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b6db1c77c60228be4fc8f53413d829615940b9a3a8a21aa0f4c09d19b074367
|
|
BLAKE2b-256 checksum How to use checksums |
a608e744933c574dec61d66115d35583257d4b4aa0fcf368a0f1bf22404e74f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for mate-wrapper 1.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.