From d2179e2ede4226ac7e2261140ac49b4e752b98e9 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 14 Apr 2019 12:25:31 +0200 Subject: [PATCH 1/2] Fix Filters.video_note wrong name --- pyrogram/client/filters/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index 9aecb79a..4c6f0ce3 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -115,7 +115,7 @@ class Filters: voice = create("Voice", lambda _, m: bool(m.voice)) """Filter messages that contain :obj:`Voice ` note objects.""" - video_note = create("Voice", lambda _, m: bool(m.video_note)) + video_note = create("VideoNote", lambda _, m: bool(m.video_note)) """Filter messages that contain :obj:`VideoNote ` objects.""" contact = create("Contact", lambda _, m: bool(m.contact)) From afac7651e48851f55da086e2cf4d67eaa738de4d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 14 Apr 2019 12:45:06 +0200 Subject: [PATCH 2/2] Update to v0.12.0 --- pyrogram/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index ab0c7d12..44dbe231 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -24,8 +24,7 @@ if sys.version_info[:3] in [(3, 5, 0), (3, 5, 1), (3, 5, 2)]: # Monkey patch the standard "typing" module because Python versions from 3.5.0 to 3.5.2 have a broken one. sys.modules["typing"] = typing - -__version__ = "0.12.0.develop" +__version__ = "0.12.0" __license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)" __copyright__ = "Copyright (C) 2017-2019 Dan Tès ".replace( "\xe8", "e" if sys.getfilesystemencoding() != "utf-8" else "\xe8"