Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Chat → Revoke Chat Invite Link

AI-generated

Summary

Revoke a specified chat invite link for a target chat, invalidating the link so it can no longer be used to join the chat.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername).
  • Invite Link (required) — The invite link to revoke.

Output shape

a single object representing the result of the revokeChatInviteLink API call

Returns the Telegram Bot API response's result object on success. May throw an error if the API call fails.

Examples

Example 1: Revoke an existing chat invite link to prevent further use

Set 'Chat ID' to the target chat's unique identifier or username, and 'Invite Link' to the invite link to be revoked.

Links

Discussion