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
| Name | Type | Required | Description |
|---|---|---|---|
Requested | bool | — | If set, only returns info about users with pending join requests » |
SubscriptionExpired | bool | — | Set this flag if the link is a Telegram Star subscription link » and only members with already expired subscription must be returned. |
Peer | InputPeerClass | yes | Chat |
Link | string | — | Invite link |
Q | 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 | yes | Offsets for pagination, for more info click here |
OffsetUser | InputUserClass | yes | User ID for pagination: if set, offset_date must also be set. |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getChatInviteImporters#df04dd4e