Name | limited-aiogram JSON |
Version |
1.0.2
JSON |
| download |
home_page | None |
Summary | Limit your api calls to avoid "Flood control exceeded" |
upload_time | 2024-06-21 05:29:49 |
maintainer | None |
docs_url | None |
author | chazovtema |
requires_python | >=3.10 |
license | None |
keywords |
aiogram
limit
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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!
```python
import limited_aiogram
limited_aiogram.patch_bot()
```
It is also possible to use a separate class `LimitedBot`, without changing the original class
```python
import limited_aiogram
bot = limited_aiogram.LimitedBot('your token')
```
Raw data
{
"_id": null,
"home_page": null,
"name": "limited-aiogram",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "aiogram, limit",
"author": "chazovtema",
"author_email": "chazovtema@mail.ru",
"download_url": "https://files.pythonhosted.org/packages/2e/d8/8d650ac8bb65f605c9c693b2bf11c1450d3a68f9856388fbc24633781a1a/limited_aiogram-1.0.2.tar.gz",
"platform": null,
"description": "# What is it?\n\nLimited aiogram is an add-on for the original aiogram Bot. This package allows you to limit how often your bot sends messages\n\n# Telegram api limits\n\nTelegram has a number of restrictions for sending messages:\n\n- 30 messages per second to multiple users\n- 20 requests/sec to group\n- 1 message per second to individual chat\n\n# Installation\n\n`pip install limited_aiogram`\n\n# Usage\n\nThe code below patches the original Bot class from aiogram, these changes are not reversible!\n```python\nimport limited_aiogram\nlimited_aiogram.patch_bot()\n```\nIt is also possible to use a separate class `LimitedBot`, without changing the original class\n\n```python\nimport limited_aiogram\nbot = limited_aiogram.LimitedBot('your token')\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Limit your api calls to avoid \"Flood control exceeded\"",
"version": "1.0.2",
"project_urls": {
"github": "https://github.com/chazovtema/limited_aiogram"
},
"split_keywords": [
"aiogram",
" limit"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ef7ea176c8041280720f02044581ae4a7a95b9d16348bc2029c6f46ddef33a8d",
"md5": "80fdc95fc8ab5e772de84890f626a4d9",
"sha256": "8958eb2509193f8077d6ae126c0796074489779929c61cd04e2e260e459a31f2"
},
"downloads": -1,
"filename": "limited_aiogram-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "80fdc95fc8ab5e772de84890f626a4d9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 4094,
"upload_time": "2024-06-21T05:29:48",
"upload_time_iso_8601": "2024-06-21T05:29:48.108487Z",
"url": "https://files.pythonhosted.org/packages/ef/7e/a176c8041280720f02044581ae4a7a95b9d16348bc2029c6f46ddef33a8d/limited_aiogram-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2ed88d650ac8bb65f605c9c693b2bf11c1450d3a68f9856388fbc24633781a1a",
"md5": "c460197a68d4053df5deb9c41d5514e5",
"sha256": "8c073e1c8cdaf1b328ac4140d0eef9349875f87548c0a01028fa1ecb23e9ed92"
},
"downloads": -1,
"filename": "limited_aiogram-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "c460197a68d4053df5deb9c41d5514e5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 3428,
"upload_time": "2024-06-21T05:29:49",
"upload_time_iso_8601": "2024-06-21T05:29:49.682147Z",
"url": "https://files.pythonhosted.org/packages/2e/d8/8d650ac8bb65f605c9c693b2bf11c1450d3a68f9856388fbc24633781a1a/limited_aiogram-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-21 05:29:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "chazovtema",
"github_project": "limited_aiogram",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "limited-aiogram"
}