editChatSubscriptionInviteLink
Returns ChatInviteLink ↗
Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users administrator rights.
Required: chat_id, invite_link · Optional: 1 parameters
Limits:
- name: 0-32 characters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("edit_chat_subscription_invite_link", { chat_id: "YOUR_CHAT_ID", invite_link: "..."})Parameters
chat_id number | string Required
Unique identifier for the target chat or username of the target channel (in the format @channelusername).
invite_link string Required
The invite link to edit.
name string
Invite link name; 0-32 characters.
Related methods
editChatInviteLink · editForumTopic · editGeneralForumTopic · editMessageCaption · editMessageChecklist · editMessageLiveLocation · editMessageMedia · editMessageReplyMarkup · editMessageText · editStory · editUserStarSubscription