mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +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],
|
chat_id: Union[int, str],
|
||||||
user_id: Union[int, str],
|
user_id: Union[int, str],
|
||||||
privileges: "types.ChatPrivileges" = None,
|
privileges: "types.ChatPrivileges" = None,
|
||||||
title: Optional[str] = "",
|
title: Optional[str] = None,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Promote or demote a user in a supergroup or a channel.
|
"""Promote or demote a user in a supergroup or a channel.
|
||||||
|
|
||||||
|
|
@ -108,7 +108,7 @@ class PromoteChatMember:
|
||||||
delete_stories=privileges.can_delete_stories,
|
delete_stories=privileges.can_delete_stories,
|
||||||
other=privileges.can_manage_chat
|
other=privileges.can_manage_chat
|
||||||
),
|
),
|
||||||
rank=rank
|
rank=rank or ""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue