Fixed some typos in documentation (#1268)

* Fixed typo in i18n documentation

* Removed extra param in docstring of TelegramEventObserver's filter method

* Added changelog
This commit is contained in:
nullmatawasoradesu 2023-08-16 17:23:10 +03:00 committed by GitHub
parent 16649ec896
commit 2093b45799
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

2
CHANGES/1268.doc.rst Normal file
View file

@ -0,0 +1,2 @@
Removed extra param in docstring of TelegramEventObserver's filter method
and fixed typo in I18n documentation.

View file

@ -40,7 +40,6 @@ class TelegramEventObserver:
Register filter for all handlers of this event observer
:param filters: positional filters
:param bound_filters: keyword filters
"""
if self._handler.filters is None:
self._handler.filters = []

View file

@ -63,7 +63,7 @@ Also if you want to use translated string in keyword- or magic- filters you will
from aiogram import F
from aiogram.utils.i18n import lazy_gettext as __
@router.message(F.text.lower() == __("My menu entry"))
@router.message(F.text == __("My menu entry"))
...