Skip to main content

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

NameTypeRequiredDescription
RevokedboolWhether to fetch revoked chat invites
PeerInputPeerClassyesChat
AdminIDInputUserClassyesWhether to only fetch chat invites from this admin
OffsetDateintOffsets for pagination, for more info click here
OffsetLinkstringOffsets for pagination, for more info click here
LimitintyesMaximum number of results to return, see pagination

Returns

*MessagesExportedChatInvites

Possible errors

CodeTypeDescription
400ADMIN_ID_INVALIDThe specified admin ID is invalid.
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.
400CHAT_ID_INVALIDThe provided chat id is invalid.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
400PEER_ID_INVALIDThe provided peer id is invalid.

References