peyk.platforms.telegram.methods.edit_chat_subscription_invite_link¶
- async peyk.platforms.telegram.methods.edit_chat_subscription_invite_link(self, chat_id: int | str, invite_link: str, *, name: str | None = None) object¶
Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users administrator rights. Returns the edited invite link as a ChatInviteLink object.
- Parameters:
chat_id – Unique identifier for the target chat or username of the target channel in the format @username
invite_link – The invite link to edit
name – Invite link name; 0-32 characters