From ff69bbaf3b787f73a07ac9265ad4fd9535f40dd8 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sat, 13 Jul 2024 15:02:12 +0700 Subject: [PATCH] pyrofork: fix Chat.promote_member NoneType error Signed-off-by: wulan17 --- pyrogram/types/user_and_chats/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/types/user_and_chats/chat.py b/pyrogram/types/user_and_chats/chat.py index 380f4591..e3e7ee0a 100644 --- a/pyrogram/types/user_and_chats/chat.py +++ b/pyrogram/types/user_and_chats/chat.py @@ -954,7 +954,7 @@ class Chat(Object): self, user_id: Union[int, str], privileges: "types.ChatPrivileges" = None, - title: Optional[str] = None, + title: Optional[str] = "", ) -> bool: """Bound method *promote_member* of :obj:`~pyrogram.types.Chat`.