diff --git a/aiogram/client/default.py b/aiogram/client/default.py index ee422982..00c8645e 100644 --- a/aiogram/client/default.py +++ b/aiogram/client/default.py @@ -28,6 +28,14 @@ class Default: def __repr__(self) -> str: return f"<{self}>" + def __eq__(self, other: object) -> bool: + if not isinstance(other, Default): + return NotImplemented + return self._name == other._name + + def __hash__(self) -> int: + return hash(self._name) + @dataclass(**dataclass_kwargs(slots=True, kw_only=True)) class DefaultBotProperties: