Skip to content

Commit 43bb473

Browse files
Fix get_chat_invite_link usable by
1 parent 19cbe1b commit 43bb473

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

pyrogram/methods/invite_links/get_chat_invite_link.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
from typing import Union
2020

2121
import pyrogram
22-
from pyrogram import raw
23-
from pyrogram import types
22+
from pyrogram import raw, types
2423

2524

2625
class 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

0 commit comments

Comments
 (0)