get_chat_invite_links

Function get_chat_invite_links 

Source
pub async fn get_chat_invite_links(
    chat_id: i64,
    creator_user_id: i64,
    is_revoked: bool,
    offset_date: i32,
    offset_invite_link: String,
    limit: i32,
    client_id: i32,
) -> Result<ChatInviteLinks, Error>
Expand description

Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links

ยงArguments

  • chat_id - Chat identifier
  • creator_user_id - User identifier of a chat administrator. Must be an identifier of the current user for non-owner
  • is_revoked - Pass true if revoked links needs to be returned instead of active or expired
  • offset_date - Creation date of an invite link starting after which to return invite links; use 0 to get results from the beginning
  • offset_invite_link - Invite link starting after which to return invite links; use empty string to get results from the beginning
  • limit - The maximum number of invite links to return; up to 100
  • client_id - The client id to send the request to