29 August 2026
Owner
Laxan3000?Is 0.001 slow for you? Do your users notice such a small difference in time? Database and Telegram Bot API latency matters, not serialization time, pay attention to your database and network.
You are measuring class initialization + simple validation
this is not even a pydantic problem (mostly), it's just how Python works. Change pydantic to dataclasses with manual deserialization - you will see the same or worse result.
Conversely, without using serialization models (their removal) significantly increases complexity and reduces usability for framework users (bot developers).
ReplyIs 0.001 slow for you? Do your users notice such a small difference in time? Database and Telegram Bot API latency matters, not serialization time, pay attention to your database and network.
You are measuring class initialization + simple validation
this is not even a pydantic problem (mostly), it
I didn't mean necessarily the speed time, it's just that declaring a lot of classes stacks on both ram and wastes time (+ the base class for all these methods for some reason doesn't have an init class, not the type variable needed, so I can't even use a single class for all of them and define the type myself...)
and I can't even input a regular dictionary, which is what telegram would accept
if those classes were EnumDict of TypedDict instead it would fix that ig?
30 August 2026
Laxan3000I didn't mean necessarily the speed time, it's just that declaring a lot of classes stacks on both ram and wastes time (+ the base class for all these methods for some reason doesn't have an init class, not the type variable needed, so I can't even use a single class for all of them and define the t
Yeah, TypedDict would let you pass plain dicts and skip the class overhead. EnumDict is less standard though — maybe just TypedDict plus a small helper if you need validation. Definitely lighter on RAM and less boilerplate.
1 September 2026
Replymessage unavailable
regarding logging, why do logs in form of aiogram.event:Update id=_ is [not] handled. Duration _ ms by bot id=_ have logging level INFO and not DEBUG?
Replymessage unavailable
is there a way to disable these specific log messages without raising log threshold?
煌嫌 KiraKirais there a way to disable these specific log messages without raising log threshold?
you can use a custom filter on aiogram.event logger, something like filter only for that name pattern, it won't kill other info logs
Викаyou can use a custom filter on aiogram.event logger, something like filter only for that name pattern, it won't kill other info logs
welp
i decided to shut it down with
logging.getLogger('aiogram.event').setLevel(logging.WARNING)
feels like it shouldn't have any severe effects if the logger receives appropriately leveled messages for Warning and above
煌嫌 KiraKirawelp
i decided to shut it down with
logging.getLogger('aiogram.event').setLevel(logging.WARNING)
feels like it shouldn't have any severe effects if the logger receives appropriately leveled messages for Warning and above
yeah, that works fine, warning level is fine for that logger
Викаyeah, that works fine, warning level is fine for that logger
for some reason i initially thought that setLevel() sets the level of incoming logs and tried setting the level to debug (which didn't solve the issue), but apparently it instead sets the threshold for that logger's logs to come through
2 September 2026
3 September 2026
4 September 2026
ViertaxasI need an online course/community chat type of bot
For course and community gating bots, structure it with Aiogram 3.x routers and an async FastAPI webhook worker. Handle tier events via webhooks, generate single-use invite links with member_limit=1, and cache user subscription states in Redis.
8 September 2026
Replymessage unavailable
Hello everyone, are there any examples of using Rich Message related to documents and uploading them to a message?
10 September 2026
11 September 2026
RteenHello, how can I get a user-joined-chat update in aiogram?
use the chat_member handler or just catch new_chat_members content type bro
15 September 2026
16 September 2026