mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Docs: choosing the first option for which callable returned True
This commit is contained in:
parent
f187767675
commit
26095df7c7
|
@ -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 <telethon.tl.custom.messagebutton.MessageButton>`
|
||||
or `PollAnswer <telethon.tl.types.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
|
||||
|
|
Loading…
Reference in New Issue
Block a user