From fde76f0e117b2ac3309db62432c9e4a7f9166891 Mon Sep 17 00:00:00 2001 From: trenoduro Date: Tue, 4 Feb 2020 17:01:44 +0100 Subject: [PATCH] Fix 'Client' object has no attribute 'export_invite_link (#365) --- pyrogram/client/types/user_and_chats/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)