Layer 220
method Users
messages.getExportedChatInvite#73746f5c peer:InputPeer link:string = messages.ExportedChatInvite;

Parameters

Name Type Description
Peer InputPeer Chat
Link string Invite link

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.

Gogram Example

// MessagesGetExportedChatInvite - positional arguments
result, err := client.MessagesGetExportedChatInvite(&tg.InputPeerUser{UserID: int64(123456789)}, "...")
if err != nil {
    // handle error
}
// result is *tg.MessagesExportedChatInvite