File tree Expand file tree Collapse file tree
pyrogram/methods/invite_links Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from typing import Union
2020
2121import pyrogram
22- from pyrogram import raw
23- from pyrogram import types
22+ from pyrogram import raw , types
2423
2524
2625class GetChatInviteLink :
@@ -31,7 +30,7 @@ async def get_chat_invite_link(
3130 ) -> "types.ChatInviteLink" :
3231 """Get detailed information about a chat invite link.
3332
34- .. include:: /_includes/usable-by/users.rst
33+ .. include:: /_includes/usable-by/users-bots .rst
3534
3635 Parameters:
3736 chat_id (``int`` | ``str``):
@@ -46,8 +45,7 @@ async def get_chat_invite_link(
4645 """
4746 r = await self .invoke (
4847 raw .functions .messages .GetExportedChatInvite (
49- peer = await self .resolve_peer (chat_id ),
50- link = invite_link
48+ peer = await self .resolve_peer (chat_id ), link = invite_link
5149 )
5250 )
5351
You can’t perform that action at this time.
0 commit comments