feat: add ChatType builtin filter (#356)

* feat: ChatTypesFilter

* feat: add example of usage

* feat: docs

* fix: add import in filters/__init__

* fix: remove some of event_handlers

* fix

* fix imports

* fix: rename to ChatTypeFilter

* fix: rename argument to chat_type

fix: rename example file name

fix: str is container also lol. example fixed also

* fix: respect type hints

* fix: add warning with respect to type hint

* fix: use warnings instead of logging
This commit is contained in:
Egor 2020-07-02 14:17:48 +03:00 committed by GitHub
parent d179789ea7
commit 81b36bd192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 90 additions and 5 deletions

View file

@ -149,6 +149,14 @@ ForwardedMessageFilter
:show-inheritance:
ChatTypeFilter
-------------
.. autoclass:: aiogram.dispatcher.filters.filters.ChatTypeFilter
:members:
:show-inheritance:
Making own filters (Custom filters)
===================================