Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object. This method support both normal and static use
| Name | Type | Description | Required |
|---|---|---|---|
| chat_id | int | string | null | array | 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
BPT::createChatInviteLink(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);BPT::createChatInviteLink(['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]);BPT::createChatInviteLink();$this->createChatInviteLink(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);$this->createChatInviteLink(['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]);$this->createChatInviteLink();