You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modified the ".as_" method in the magic filter class to correctly handle values that are interpreted as `False` such as `0`. Previously, the method incorrectly dismissed these valid values. The issue was identified and fixed to ensure correct handling of all valid data inputs.
Modified the ".as_" method in the magic filter class to correctly handle values that are interpreted as `False` such as `0`. Previously, the method incorrectly dismissed these valid values. The issue was identified and fixed to ensure correct handling of all valid data inputs.
Checklist
Operating system
Any
Python version
Any
aiogram version
3.0
Expected behavior
F.text.cast(int).as_("value")
should works when text is "0"Current behavior
0 interpreted as negative result
Steps to reproduce
Code example
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: