mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
Hide args from repr for Command.CommandObj
This commit is contained in:
parent
b647eb476a
commit
23211fc283
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import inspect
|
||||
import re
|
||||
from contextvars import ContextVar
|
||||
from dataclasses import dataclass
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any, Dict, Iterable, Optional, Union
|
||||
|
||||
from aiogram import types
|
||||
|
|
@ -73,7 +73,7 @@ class Command(Filter):
|
|||
prefix: str = '/'
|
||||
command: str = ''
|
||||
mention: str = None
|
||||
args: str = None
|
||||
args: str = field(repr=False, default=None)
|
||||
|
||||
@property
|
||||
def mentioned(self) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue