Telegram Bot API

Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object.

post/editChatInviteLink

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/editChatInviteLink
  • Auth: none declared

Request body

invite_linkstring required

The invite link to edit

namestring

Invite link name; 0-32 characters

expire_dateinteger

Point in time (Unix timestamp) when the link will expire

member_limitinteger

The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999

creates_join_requestboolean

True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified.

Response

Telegram API response

oktrue required

Changes

    • info

      added the optional property /////// to the response with the status