Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor Tests for TelegramObject Classes with Subclasses #4654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 6, 2025
3 changes: 2 additions & 1 deletion telegram/_chatmember.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from telegram import constants
from telegram._telegramobject import TelegramObject
from telegram._user import User
from telegram._utils import enum
from telegram._utils.argumentparsing import de_json_optional
from telegram._utils.datetime import extract_tzinfo_from_defaults, from_timestamp
from telegram._utils.types import JSONDict
Expand Down Expand Up @@ -99,7 +100,7 @@ def __init__(
super().__init__(api_kwargs=api_kwargs)
# Required by all subclasses
self.user: User = user
self.status: str = status
self.status: str = enum.get_member(constants.ChatMemberStatus, status, status)

self._id_attrs = (self.user, self.status)

Expand Down
Loading
Loading