peyk.platforms.telegram.methods.edit_chat_invite_link¶
- async peyk.platforms.telegram.methods.edit_chat_invite_link(self, chat_id: int | str, invite_link: str, *, name: str | None = None, expire_date: int | None = None, member_limit: int | None = None, creates_join_request: bool | None = None) ChatInviteLink[source]¶
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.
- 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
expire_date – Point in time (Unix timestamp) when the link will expire
member_limit – 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_request – True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can’t be specified.