Skip to main content

messages.getChatInviteImporters

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

func (c *Client) MessagesGetChatInviteImporters(ctx context.Context, request *MessagesGetChatInviteImportersRequest) (*MessagesChatInviteImporters, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesGetChatInviteImporters(ctx, &tg.MessagesGetChatInviteImportersRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesChatInviteImporters
return nil
})

Parameters

NameTypeRequiredDescription
RequestedboolIf set, only returns info about users with pending join requests »
SubscriptionExpiredboolSet this flag if the link is a Telegram Star subscription link » and only members with already expired subscription must be returned.
PeerInputPeerClassyesChat
LinkstringInvite link
QstringSearch 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.
OffsetDateintyesOffsets for pagination, for more info click here
OffsetUserInputUserClassyesUser ID for pagination: if set, offset_date must also be set.
LimitintyesMaximum number of results to return, see pagination

Returns

*MessagesChatInviteImporters

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
400INVITE_HASH_EXPIREDThe invite link has expired.
400PEER_ID_INVALIDThe provided peer id is invalid.
400SEARCH_WITH_LINK_NOT_SUPPORTEDYou cannot provide a search query and an invite link at the same time.

References