messages.GetChatInviteImporters

class pyrogram.raw.functions.messages.GetChatInviteImporters

Get info about the users that joined the chat using a specific chat invite

Details:
  • Layer: 227

  • ID: DF04DD4E

Parameters:
  • peer (InputPeer) – Chat

  • offset_date (int 32-bit) – Offsets for pagination, for more info click here

  • offset_user (InputUser) – User ID for pagination: if set, offset_date must also be set.

  • limit (int 32-bit) – Maximum number of results to return, see pagination

  • requested (bool, optional) – If set, only returns info about users with pending join requests »

  • subscription_expired (bool, optional) – Set this flag if the link is a Telegram Star subscription link » and only members with already expired subscription must be returned.

  • link (str, optional) – Invite link

  • q (str, optional) – Search for a user in the pending join requests » list: only available when the requested flag is set, cannot be used together with a specific link.

Returns:

messages.ChatInviteImporters

TL Schema

messages.getChatInviteImporters#df04dd4e
flags:#
requested:flags.0?true
subscription_expired:flags.3?true
peer:InputPeer
link:flags.1?string
q:flags.2?string
offset_date:int
offset_user:InputUser
limit:int

= messages.ChatInviteImporters

Parameter Tree

GetChatInviteImporters
├── requested → true (optional)
├── subscription_expired → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── link → string (optional)
├── q → string (optional)
├── offset_date → int
├── offset_user → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
└── limit → int

Example

await app.invoke(
    GetChatInviteImporters(
        requested=None,
        subscription_expired=None,
        peer=await app.resolve_peer(chat_id),
        link="text",
        q="text",
        offset_date=0,
        offset_user=await app.resolve_user(chat_id),
        limit=0,
    )
)