As noted by aiogram maintainer, one can add custom properties which are meant to be constant (like config or lang) directly to Bot instance.
Currently these two properties are pushed to every new update in middleware, which is not performance-wise.
This way, the only middleware can be easily removed, simplifying the code a bit.
As noted by aiogram maintainer, one can add custom properties which are meant to be constant (like config or lang) directly to Bot instance. Currently these two properties are pushed to every new update in middleware, which is not performance-wise.
This way, the only middleware can be easily removed, simplifying the code a bit.