From a24666f8e4548ce85e049c7455b95302e8c379c7 Mon Sep 17 00:00:00 2001 From: khoben Date: Tue, 6 Oct 2020 21:26:03 +0700 Subject: [PATCH] Docs: mention multiple choice within filter and text args description --- telethon/tl/custom/message.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telethon/tl/custom/message.py b/telethon/tl/custom/message.py index 7f220346..4e182ca5 100644 --- a/telethon/tl/custom/message.py +++ b/telethon/tl/custom/message.py @@ -830,8 +830,8 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC): also be a callable, like a ``re.compile(...).match``, and the text will be passed to it. - Please note that the first option for which the callable - returns `True` will be selected. + If you need to select multiple options in a poll, + pass a list of indices to the ``i`` parameter. filter (`callable`): Clicks the first button or poll option for which the callable @@ -839,8 +839,8 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC): `MessageButton ` or `PollAnswer ` argument. - Please note that the first option for which the callable - returns `True` will be selected. + If you need to select multiple options in a poll, + pass a list of indices to the ``i`` parameter. data (`bytes`): This argument overrides the rest and will not search any