mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
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:
parent
16649ec896
commit
2093b45799
3 changed files with 3 additions and 2 deletions
2
CHANGES/1268.doc.rst
Normal file
2
CHANGES/1268.doc.rst
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Removed extra param in docstring of TelegramEventObserver's filter method
|
||||||
|
and fixed typo in I18n documentation.
|
||||||
|
|
@ -40,7 +40,6 @@ class TelegramEventObserver:
|
||||||
Register filter for all handlers of this event observer
|
Register filter for all handlers of this event observer
|
||||||
|
|
||||||
:param filters: positional filters
|
:param filters: positional filters
|
||||||
:param bound_filters: keyword filters
|
|
||||||
"""
|
"""
|
||||||
if self._handler.filters is None:
|
if self._handler.filters is None:
|
||||||
self._handler.filters = []
|
self._handler.filters = []
|
||||||
|
|
|
||||||
|
|
@ -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 import F
|
||||||
from aiogram.utils.i18n import lazy_gettext as __
|
from aiogram.utils.i18n import lazy_gettext as __
|
||||||
|
|
||||||
@router.message(F.text.lower() == __("My menu entry"))
|
@router.message(F.text == __("My menu entry"))
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue