This project has been archived by its maintainers, and is no longer receiving any updates.
Proxy Messages for Aiogram
A library implementing a simple way to proxy messages from a bot to a selected channel-forum
Functionality
Installation
pip install proxy-messages-aiogram
Quick start
Mode details in example.
from aiogram import Bot, Dispatcher
from proxy_messages_aiogram.proxy_managers import ProxyManager
from proxy_messages_aiogram.storages.sqlite_storage import SQLiteStorage
dp = Dispatcher()
proxy_manager = ProxyManager(
SQLiteStorage(),
{TARGET_TG_CHAT_ID},
)
@dp.message(proxy_manager.proxy_magic_filter)
async def proxy_messages_handler(message: Message) -> None:
await proxy_manager.proxy(message)
@dp.message(proxy_manager.answer_magic_filter)
async def answer_messages_handler(message: Message) -> None:
await proxy_manager.answer(message)
Contribute
Issue Tracker: https://gitlab.com/rocshers/python/proxy-messages-aiogram/-/issues
Source Code: https://gitlab.com/rocshers/python/proxy-messages-aiogram
Before adding changes:
make install-dev
After changes:
make format test
Metadata
Release files for proxy-messages-aiogram 0.1.7
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 |
|---|---|---|---|---|
| proxy_messages_aiogram-0.1.7.tar.gz | 7.3 kB | Without provenance | Details for proxy_messages_aiogram-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proxy_messages_aiogram-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for proxy_messages_aiogram-0.1.7-py3-none-any.whl |
Total release size: 17.6 kB
Release files / proxy_messages_aiogram-0.1.7.tar.gz
| Download URL | proxy_messages_aiogram-0.1.7.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
960dd7945c105d8399785917b1dceef0c6728e1389f40767408f4246e4e211c4
|
|
BLAKE2b-256 checksum How to use checksums |
6faf35e70620d514d3e6faeb445a580c0eafa4874609efa7f2dd9e4c12501341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.8.0-40-generic
|
Release files / proxy_messages_aiogram-0.1.7-py3-none-any.whl
| Download URL | proxy_messages_aiogram-0.1.7-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
258af4f1fcd5a126b883adf592b0fc5a309348e8372f310cdd6a92bf446fdf29
|
|
BLAKE2b-256 checksum How to use checksums |
19891469467333982c8acb175af08e43c39d5589bd62c517e451c5e5d0e41c84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.8.0-40-generic
|
Security for proxy-messages-aiogram 0.1.7
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.