Skip to main content

messages.getAdminsWithInvites

Get info about chat invites generated by admins.

func (c *Client) MessagesGetAdminsWithInvites(ctx context.Context, peer InputPeerClass) (*MessagesChatAdminsWithInvites, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesGetAdminsWithInvites(ctx, peer)
if err != nil {
return err
}
_ = res // *MessagesChatAdminsWithInvites
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesChat

Returns

*MessagesChatAdminsWithInvites

Possible errors

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
400PEER_ID_INVALIDThe provided peer id is invalid.

References