mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-31 12:44:52 +00:00
Merge pull request #89 from MrMissx/main
fix(promote_chat_member): add fallback empty string rank
This commit is contained in:
commit
ccfac93e84
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class PromoteChatMember:
|
|||
chat_id: Union[int, str],
|
||||
user_id: Union[int, str],
|
||||
privileges: "types.ChatPrivileges" = None,
|
||||
title: Optional[str] = "",
|
||||
title: Optional[str] = None,
|
||||
) -> bool:
|
||||
"""Promote or demote a user in a supergroup or a channel.
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ class PromoteChatMember:
|
|||
delete_stories=privileges.can_delete_stories,
|
||||
other=privileges.can_manage_chat
|
||||
),
|
||||
rank=rank
|
||||
rank=rank or ""
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue