Layer 220
method Users
messages.getExportedChatInvites#a2b5a3f6 flags:# revoked:flags.3?true peer:InputPeer admin_id:InputUser offset_date:flags.2?int offset_link:flags.2?string limit:int = messages.ExportedChatInvites;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Revoked flags.3?true Whether to fetch revoked chat invites
Peer InputPeer Chat
AdminId InputUser Whether to only fetch chat invites from this admin
OffsetDate flags.2?int Offsets for pagination, for more info click here
OffsetLink flags.2?string Offsets for pagination, for more info click here
Limit int Maximum number of results to return, see pagination

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.

Gogram Example

// MessagesGetExportedChatInvites - using Params struct
result, err := client.MessagesGetExportedChatInvites(&tg.MessagesGetExportedChatInvitesParams{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},
    AdminId: &tg.InputUserSelf{},
    Limit: 0,

    // Optional fields:
    // Revoked: true,
    // OffsetDate: 0,
    // OffsetLink: "...",
})
if err != nil {
    // handle error
}
// result is *tg.MessagesExportedChatInvites