From a35e2620f867678935d76b65e1961caf35fc0ecf Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 4 Jun 2019 23:36:10 +0200 Subject: [PATCH] Fix export_chat_invite_link for basic groups in Layer 100 --- compiler/api/source/main_api.tl | 5 ++++- pyrogram/client/methods/chats/export_chat_invite_link.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/api/source/main_api.tl b/compiler/api/source/main_api.tl index 43b02e80..16a93420 100644 --- a/compiler/api/source/main_api.tl +++ b/compiler/api/source/main_api.tl @@ -1356,4 +1356,7 @@ langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLangua folders.editPeerFolders#6847d0ab folder_peers:Vector = Updates; folders.deleteFolder#1c295881 folder_id:int = Updates; -// LAYER 100 \ No newline at end of file +// LAYER 100 + +// Ports +channels.exportInvite#c7560885 channel:InputChannel = ExportedChatInvite; \ No newline at end of file diff --git a/pyrogram/client/methods/chats/export_chat_invite_link.py b/pyrogram/client/methods/chats/export_chat_invite_link.py index 26263d53..9266183d 100644 --- a/pyrogram/client/methods/chats/export_chat_invite_link.py +++ b/pyrogram/client/methods/chats/export_chat_invite_link.py @@ -54,7 +54,7 @@ class ExportChatInviteLink(BaseClient): if isinstance(peer, types.InputPeerChat): return self.send( functions.messages.ExportChatInvite( - peer=peer.chat_id + peer=peer ) ).link elif isinstance(peer, types.InputPeerChannel):