Skip to main content

Revoke Chat Invite Link

Use this action to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.

Parameters

ParameterDescription
Chat ID Or UsernameUnique identifier for the target chat or username of the target channel (in the format @channelusername).You can easily retrieve a channel's ID from it's web view link at https://web.telegram.org/ - e.g the channel at https://web.telegram.org/z/#-863152528 has the id -863152528.
Invite LinkThe invite link to edit.

Example Output

{
"ok": true,
"result": {
"invite_link": "https://t.me/+weTFwLtkjP00NmU0",
"name": "second1670440469510",
"creator": {
"id": 5927593490,
"is_bot": true,
"first_name": "BlinkTests",
"username": "BlinkOpsBot"
},
"creates_join_request": false,
"is_primary": false,
"is_revoked": true
}
}

Workflow Library Example

Revoke Chat Invite Link with Telegram and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop