edit_chat_invite_link
Use this method to edit a non-primary invite link created by the bot.
Parameters
chat_id
(int
orstr
): Id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)invite_link
(str
): The invite link to editname
(str
) (optional
): Invite link name; 0-32 charactersexpire_date
(int
) (optional
): Point in time (Unix timestamp) when the link will expiremember_limit
(int
) (optional
): Maximum number of users that can be members of the chat simultaneouslycreates_join_request
(bool
) (optional
): True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified
Returns
ChatInviteLink
Examples
- Required Parameters
await bot.edit_chat_invite_link(
chat_id=your_chat_id_here,
invite_link=your_invite_link_here
)
- All Parameters
await bot.edit_chat_invite_link(
chat_id=your_chat_id_here,
invite_link=your_invite_link_here,
name=your_name_here,
expire_date=your_expire_date_here,
member_limit=your_member_limit_here,
creates_join_request=your_creates_join_request_here
)