You must be an administrator in the chat for this to work and must have the appropriate admin rights.
chat_id (int | str) – Unique identifier for the target chat or username of the target channel/supergroup
(in the format @username).
invite_link (str) – The invite link to edit
expire_date (int, optional) – Point in time (Unix timestamp) when the link will expire.
Defaults to None (no change), pass 0 to set no expiration date.
member_limit (int, optional) – Maximum number of users that can be members of the chat simultaneously after joining the chat via this
invite link; 1-99999.
Defaults to None (no change), pass 0 to set no member limit.