replace_primary_chat_invite_link

Function replace_primary_chat_invite_link 

Source
pub async fn replace_primary_chat_invite_link(
    chat_id: i64,
    client_id: i32,
) -> Result<ChatInviteLink, Error>
Expand description

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

ยงArguments

  • chat_id - Chat identifier
  • client_id - The client id to send the request to