mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Add renamed_argument decorator
This commit is contained in:
parent
6ce020588c
commit
fecfa10928
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import typing
|
|||
from . import base, fields
|
||||
from .user import User
|
||||
from ..utils import helper
|
||||
from ..utils.deprecated import renamed_argument
|
||||
|
||||
T = typing.TypeVar('T')
|
||||
|
||||
|
|
@ -108,6 +109,7 @@ class ChatMember(base.TelegramObject):
|
|||
return ChatMemberStatus.is_chat_member(self.status)
|
||||
|
||||
|
||||
@renamed_argument(old_name='can_manage_voice_chats', new_name='can_manage_video_chats', until_version='3.0')
|
||||
class ChatMemberOwner(ChatMember):
|
||||
"""
|
||||
Represents a chat member that owns the chat and has all
|
||||
|
|
@ -137,6 +139,7 @@ class ChatMemberOwner(ChatMember):
|
|||
can_pin_messages: base.Boolean = fields.ConstField(True)
|
||||
|
||||
|
||||
@renamed_argument(old_name='can_manage_voice_chats', new_name='can_manage_video_chats', until_version='3.0')
|
||||
class ChatMemberAdministrator(ChatMember):
|
||||
"""
|
||||
Represents a chat member that has some additional privileges.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue