Aiogram

Latest version: v3.6.0

Safety actively analyzes 629723 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 13

2.2

================

- Provides latest Telegram Bot API (4.3)
- Updated docs for filters
- Added opportunity to use different bot tokens from single bot instance (via context manager, `100 <https://github.com/aiogram/aiogram/issues/100>`_)
- IMPORTANT: Fixed Typo: :code:`data` -> :code:`bucket` in :code:`update_bucket` for RedisStorage2 (`132 <https://github.com/aiogram/aiogram/issues/132>`_)

2.1

================

- Implemented all new features from Telegram Bot API 4.2
- :code:`is_member` and :code:`is_admin` methods of :code:`ChatMember` and :code:`ChatMemberStatus` was renamed to :code:`is_chat_member` and :code:`is_chat_admin`
- Remover func filter
- Added some useful Message edit functions (:code:`Message.edit_caption`, :code:`Message.edit_media`, :code:`Message.edit_reply_markup`) (`121 <https://github.com/aiogram/aiogram/issues/121>`_, `#103 <https://github.com/aiogram/aiogram/issues/103>`_, `#104 <https://github.com/aiogram/aiogram/issues/104>`_, `#112 <https://github.com/aiogram/aiogram/issues/112>`_)
- Added requests timeout for all methods (`110 <https://github.com/aiogram/aiogram/issues/110>`_)
- Added :code:`answer*` methods to :code:`Message` object (`112 <https://github.com/aiogram/aiogram/issues/112>`_)
- Maked some improvements of :code:`CallbackData` factory
- Added deep-linking parameter filter to :code:`CommandStart` filter
- Implemented opportunity to use DNS over socks (`97 <https://github.com/aiogram/aiogram/issues/97>`_ -> `#98 <https://github.com/aiogram/aiogram/issues/98>`_)
- Implemented logging filter for extending LogRecord attributes (Will be usefull with external logs collector utils like GrayLog, Kibana and etc.)
- Updated :code:`requirements.txt` and :code:`dev_requirements.txt` files
- Other small changes and minor improvements

2.0.1

==================

- Implemented CallbackData factory (`example <https://github.com/aiogram/aiogram/blob/master/examples/callback_data_factory.py>`_)
- Implemented methods for answering to inline query from context and reply with animation to the messages. `85 <https://github.com/aiogram/aiogram/issues/85>`_
- Fixed installation from tar.gz `84 <https://github.com/aiogram/aiogram/issues/84>`_
- More exceptions (:code:`ChatIdIsEmpty` and :code:`NotEnoughRightsToRestrict`)

2.0

================

This update will break backward compability with Python 3.6 and works only with Python 3.7+:
- contextvars (PEP-567);
- New syntax for annotations (PEP-563).

Changes:
- Used contextvars instead of :code:`aiogram.utils.context`;
- Implemented filters factory;
- Implemented new filters mechanism;
- Allowed to customize command prefix in CommandsFilter;
- Implemented mechanism of passing results from filters (as dicts) as kwargs in handlers (like fixtures in pytest);
- Implemented states group feature;
- Implemented FSM storage's proxy;
- Changed files uploading mechanism;
- Implemented pipe for uploading files from URL;
- Implemented I18n Middleware;
- Errors handlers now should accept only two arguments (current update and exception);
- Used :code:`aiohttp_socks` instead of :code:`aiosocksy` for Socks4/5 proxy;
- types.ContentType was divided to :code:`types.ContentType` and :code:`types.ContentTypes`;
- Allowed to use rapidjson instead of ujson/json;
- :code:`.current()` method in bot and dispatcher objects was renamed to :code:`get_current()`;

Full changelog
- You can read more details about this release in migration FAQ: `<https://aiogram.readthedocs.io/en/latest/migration_1_to_2.html>`_

1.4

================

- Bot API 4.0 (`57 <https://github.com/aiogram/aiogram/issues/57>`_)

1.3.3

==================

- Fixed markup-entities parsing;
- Added more API exceptions;
- Now InlineQueryResultLocation has live_period;
- Added more message content types;
- Other small changes and minor improvements.

Page 9 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.