github aiogram/aiogram v2.0
A new era (2)!

latest releases: v3.5.0, v3.4.1, v3.4.0...
5 years ago

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

Changelog

  • Used contextvars instead of 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 aiohttp_socks instead of aiosocksy for Socks4/5 proxy;
  • types.ContentType was divided to types.ContentType and types.ContentTypes;
  • Allowed to use rapidjson instead of ujson/json;
  • .current() method in bot and dispatcher objects was renamed to 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

Don't miss a new aiogram release

NewReleases is sending notifications on new releases.