From f187767675b348c04e9f081a50acd9782825f6bf Mon Sep 17 00:00:00 2001 From: khoben Date: Tue, 6 Oct 2020 18:57:53 +0700 Subject: [PATCH] Revert "Allows multiselection of poll option with callable" This reverts commit a30ec32b6f05028914c5c1dc98ae153570878256. --- telethon/tl/custom/message.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/telethon/tl/custom/message.py b/telethon/tl/custom/message.py index 27da54a8..91356901 100644 --- a/telethon/tl/custom/message.py +++ b/telethon/tl/custom/message.py @@ -865,12 +865,6 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC): If the button is pressed without this, `ValueError` is raised. - multiselect_options (`bool`): - Allows multiselection of poll options for which the callable - `filter` or `text` returns `True`. - - Defaults to `False`. - Example: .. code-block:: python @@ -921,8 +915,6 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC): return [answers[i].option] if text is not None: if callable(text): - if multiselect_options: - return [answer.option for answer in answers if text(answer.text)] for answer in answers: if text(answer.text): return [answer.option] @@ -933,8 +925,6 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC): return if filter is not None: - if multiselect_options: - return [answer.option for answer in answers if filter(answer)] for answer in answers: if filter(answer): return [answer.option]