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.
| Name | Type | Description | Required |
|---|---|---|---|
| invite_link | string | array | The invite link to edit | yes |
| chat_id | int | string | null | Unique identifier for the target chat or username of the target channel (in the format @channelusername) | no |
| name | string | null | Invite link name; 0-32 characters | no |
| expire_date | int | null | Point in time (Unix timestamp) when the link will expire | no |
| member_limit | int | null | The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999 | no |
| creates_join_request | bool | null | True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified | no |
| token | string | null | You can use this method on another bot with specify this parameter | no |
| forgot | bool | null | You can set to not receive request result, dont set it or pass null for turn it off | no |
| answer | bool | null | You can set to answer to webhook, dont set it or pass null for turn it off | no |
Output : BPT\types\chatInviteLink | BPT\types\responseError | bool
Static or normal : Static
request::editChatInviteLink(invite_link: string, chat_id: int | string | null, name: string | null, expire_date: int | null, member_limit: int | null, creates_join_request: bool | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);request::editChatInviteLink(['invite_link' => string, 'chat_id' => int | string | null, 'name' => string | null, 'expire_date' => int | null, 'member_limit' => int | null, 'creates_join_request' => bool | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);request::editChatInviteLink(invite_link: string);request::editChatInviteLink(['invite_link' => string]);