Skip to main content
Archived

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

PyPI PyPI - Python Version GitLab last commit Docs

Test coverage Downloads GitLab stars

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)

Source distribution for proxy-messages-aiogram 0.1.7
File Size Uploaded
proxy_messages_aiogram-0.1.7.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proxy-messages-aiogram 0.1.7
File Interpreter ABI Platform
proxy_messages_aiogram-0.1.7-py3-none-any.whl Python 3 none any Details

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