From 26095df7c78d5f4407106af3a2f044c4b6f9d53e Mon Sep 17 00:00:00 2001 From: khoben Date: Tue, 6 Oct 2020 19:47:37 +0700 Subject: [PATCH] Docs: choosing the first option for which callable returned True --- telethon/tl/custom/message.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/telethon/tl/custom/message.py b/telethon/tl/custom/message.py index 91356901..7f220346 100644 --- a/telethon/tl/custom/message.py +++ b/telethon/tl/custom/message.py @@ -830,12 +830,18 @@ 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. + filter (`callable`): Clicks the first button or poll option for which the callable returns `True`. The callable should accept a single `MessageButton ` or `PollAnswer ` argument. + Please note that the first option for which the callable + returns `True` will be selected. + data (`bytes`): This argument overrides the rest and will not search any buttons. Instead, it will directly send the request to