Layer 220
method Users
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;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Requested flags.0?true If set, only returns info about users with pending join requests
SubscriptionExpired flags.3?true Set this flag if the link is a Telegram Star subscription link and only members with already expired subscription must be returned.
Peer InputPeer Chat
Link flags.1?string Invite link
Q flags.2?string 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.
OffsetDate int Offsets for pagination, for more info click here
OffsetUser InputUser User ID for pagination: if set, offset_date must also be set.
Limit int Maximum number of results to return, see pagination

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
403 CHAT_WRITE_FORBIDDEN You can't write in this chat.
400 INVITE_HASH_EXPIRED The invite link has expired.
400 PEER_ID_INVALID The provided peer id is invalid.
400 SEARCH_WITH_LINK_NOT_SUPPORTED You cannot provide a search query and an invite link at the same time.

Gogram Example

// MessagesGetChatInviteImporters - using Params struct
result, err := client.MessagesGetChatInviteImporters(&tg.MessagesGetChatInviteImportersParams{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},
    OffsetDate: 0,
    OffsetUser: &tg.InputUserSelf{},
    Limit: 0,

    // Optional fields:
    // Requested: true,
    // SubscriptionExpired: true,
    // Link: "...",
    // Q: "...",
})
if err != nil {
    // handle error
}
// result is *tg.MessagesChatInviteImporters