What is it?
Limited aiogram is an add-on for the original aiogram Bot. This package allows you to limit how often your bot sends messages
Telegram api limits
Telegram has a number of restrictions for sending messages:
- 30 messages per second to multiple users
- 20 requests/sec to group
- 1 message per second to individual chat
Installation
pip install limited_aiogram
Usage
The code below patches the original Bot class from aiogram, these changes are not reversible!
import limited_aiogram
limited_aiogram.patch_bot()
It is also possible to use a separate class LimitedBot, without changing the original class
import limited_aiogram
bot = limited_aiogram.LimitedBot('your token')
Metadata
Release files for limited-aiogram 1.0.2
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 |
|---|---|---|---|---|
| limited_aiogram-1.0.2.tar.gz | 3.4 kB | Without provenance | Details for limited_aiogram-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| limited_aiogram-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for limited_aiogram-1.0.2-py3-none-any.whl |
Total release size: 7.5 kB
Release files / limited_aiogram-1.0.2.tar.gz
| Download URL | limited_aiogram-1.0.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c073e1c8cdaf1b328ac4140d0eef9349875f87548c0a01028fa1ecb23e9ed92
|
|
BLAKE2b-256 checksum How to use checksums |
2ed88d650ac8bb65f605c9c693b2bf11c1450d3a68f9856388fbc24633781a1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|
Release files / limited_aiogram-1.0.2-py3-none-any.whl
| Download URL | limited_aiogram-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8958eb2509193f8077d6ae126c0796074489779929c61cd04e2e260e459a31f2
|
|
BLAKE2b-256 checksum How to use checksums |
ef7ea176c8041280720f02044581ae4a7a95b9d16348bc2029c6f46ddef33a8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|
Security for limited-aiogram 1.0.2
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.