Telegram Bot icon

Telegram Bot

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

Actions101

Chat → Edit Chat Invite Link

AI-generated

Summary

Modifies an existing invite link for a Telegram chat.

Inputs

  • chat_id (required) — Unique identifier for the target chat or username (@channelusername).
  • invite_link (required) — The invite link to edit or revoke.
  • name — Invite link name.
  • expire_date — Unix timestamp when the link will expire.
  • member_limit — Max number of users (1-99999).
  • creates_join_request — Whether users need to be approved to join.

Output shape

a single record

Returns the updated invite link object.

Examples

Example 1: Set an expiration date on an existing link

Chat ID: 123456789, Invite Link: https://t.me/joinchat/..., Expire Date: 1735689600

Example 2: Limit the number of members for a specific link

Chat ID: -1001234567890, Invite Link: https://t.me/joinchat/ABC123, Member Limit: 10

Links

Discussion