mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge branch 'dev-3.x' into mongo_storage
Conflicts resolved
This commit is contained in:
commit
04ae6dcd7a
164 changed files with 3923 additions and 736 deletions
|
|
@ -6,8 +6,8 @@ Usage
|
|||
=====
|
||||
|
||||
1. Filter single variant of commands: :code:`Command("start")`
|
||||
2. Handle command by regexp pattern: :code:`Command(re.compile(r"item_(\d+)"))`
|
||||
3. Match command by multiple variants: :code:`Command("item", re.compile(r"item_(\d+)"))`
|
||||
2. Handle command by regexp pattern: :code:`Command(re.compile(r"item_(\\d+)"))`
|
||||
3. Match command by multiple variants: :code:`Command("item", re.compile(r"item_(\\d+)"))`
|
||||
4. Handle commands in public chats intended for other bots: :code:`Command("command", ignore_mention=True)`
|
||||
5. Use :class:`aiogram.types.bot_command.BotCommand` object as command reference :code:`Command(BotCommand(command="command", description="My awesome command")`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue