mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Change List to Set
This commit is contained in:
parent
e2fb9380d6
commit
410350a7ea
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ Can be used only with string attributes.
|
|||
.. code-block:: python
|
||||
|
||||
F.text.lower() == 'test' # lambda message: message.text.lower() == 'test'
|
||||
F.text.upper().in_(['FOO', 'BAR']) # lambda message: message.text.upper() in ['FOO', 'BAR']
|
||||
F.text.upper().in_({'FOO', 'BAR'}) # lambda message: message.text.upper() in {'FOO', 'BAR'}
|
||||
F.text.len() == 5 # lambda message: len(message.text) == 5
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue