From 31a54d5b87f128ced16691b120c218eea7f91f87 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 30 Jul 2023 00:00:10 +0300 Subject: [PATCH] Added changelog --- CHANGES/1233.bugfix.rst | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 CHANGES/1233.bugfix.rst diff --git a/CHANGES/1233.bugfix.rst b/CHANGES/1233.bugfix.rst new file mode 100644 index 00000000..17aa8fbc --- /dev/null +++ b/CHANGES/1233.bugfix.rst @@ -0,0 +1,4 @@ +Added model validation to remove UNSET before field validation. +This change was necessary to correctly handle parse_mode where 'UNSET' is used as a sentinel value. +Without the removal of 'UNSET', it would create issues when passed to model initialization from Bot.method_name. +'UNSET' was also added to typing.