edit_chat_subscription_invite_link()¶
- async Client.edit_chat_subscription_invite_link()¶
Edit a subscription invite link created by the bot.
The bot must have the
can_invite_usersadministrator right. Returns the edited invite link as aChatInviteLinkobject.Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target channel.invite_link (
str) – The subscription invite link to edit.name (
str, optional) – Invite link name; 0-32 characters.
- Returns:
ChatInviteLink– On success, the edited invite link is returned.
Example
# Rename an existing subscription invite link link = await app.edit_chat_subscription_invite_link( chat_id=chat_id, invite_link="https://t.me/+xxxx", name="VIP Members", )