messages.getExportedChatInvites
Get info about the chat invites of a specific chat
func (c *Client) MessagesGetExportedChatInvites(ctx context.Context, request *MessagesGetExportedChatInvitesRequest) (*MessagesExportedChatInvites, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetExportedChatInvites(ctx, &tg.MessagesGetExportedChatInvitesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesExportedChatInvites
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Revoked | bool | — | Whether to fetch revoked chat invites |
Peer | InputPeerClass | yes | Chat |
AdminID | InputUserClass | yes | Whether to only fetch chat invites from this admin |
OffsetDate | int | — | Offsets for pagination, for more info click here |
OffsetLink | string | — | Offsets for pagination, for more info click here |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | ADMIN_ID_INVALID | The specified admin ID is invalid. |
| 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. |
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getExportedChatInvites#a2b5a3f6