diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index 56403175..fd324622 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -724,4 +724,4 @@ class Chat(Object): ValueError: In case the chat_id belongs to a user. """ - return self._client.export_invite_link(self.id) + return self._client.export_chat_invite_link(self.id)