From 30f4e8397bce2fcefd2e455b4ffbec7d7a274196 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 25 Jan 2020 18:38:13 +0200 Subject: [PATCH] Update docs for Router initializer --- docs/dispatcher/router.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/dispatcher/router.md b/docs/dispatcher/router.md index c08df6b8..09f3c916 100644 --- a/docs/dispatcher/router.md +++ b/docs/dispatcher/router.md @@ -1,10 +1,16 @@ # Router Imports: -- Recommended: `#!python3 from aiogram import Dispatcher` -- Real location: `#!python3 from aiogram.dispatcher.dispatcher import Dispatcher` +- Recommended: `#!python3 from aiogram import Router` +- Real location: `#!python3 from aiogram.dispatcher.dispatcher import Router` -Router does not accept any arguments in initializer so that's mean you can simply create instance: + +## Initializer specification +| Argument | Type | Description | +| - | - | - | +| `use_builtin_filters` | `#!python3 bool` | Register builtin filters in filters factory. Has no effect when filters is already registered in parent router. (default: `#!python3 True`) | + +Example: ```python3 router = Router() ```