From 321aa404c3f8350d8718f0eb46dc4aa70438ea69 Mon Sep 17 00:00:00 2001 From: birdi Date: Mon, 5 Aug 2019 10:02:06 +0300 Subject: [PATCH] Add docstrings to the Text filter --- aiogram/dispatcher/filters/builtin.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aiogram/dispatcher/filters/builtin.py b/aiogram/dispatcher/filters/builtin.py index 386ed7ef..af328a13 100644 --- a/aiogram/dispatcher/filters/builtin.py +++ b/aiogram/dispatcher/filters/builtin.py @@ -213,11 +213,12 @@ class Text(Filter): ignore_case=False): """ Check text for one of pattern. Only one mode can be used in one filter. + In every pattern, a single string is treated as a list with 1 element. - :param equals: - :param contains: - :param startswith: - :param endswith: + :param equals: True if object text in the list + :param contains: True if object text contains all strings from the list + :param startswith: True if object text startswith any of strings from the list + :param endswith: True if object text endswith any of strings from the list :param ignore_case: case insensitive """ # Only one mode can be used. check it.