View Source ExTDLib.Method.ReplacePrimaryChatInviteLink (ExTDLib v0.0.4)

Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right. Returns object_ptr<ChatInviteLink>.

NameTypeDescription
chat_idstringChat identifier.

More details on telegram's documentation.