Chat invite links
You can export chat invite link
Export chat invite link
To export chat invite link, use .exportInviteLink
answer/api method
If you need, you can pass chat id you want to export chat invite link as argument (required in Api method)
If you want to know what arguments an API method takes, see the IDE hint
Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights
Returns the new invite link as string on success
Create invite link
You can create chat invite link using .createInviteLink
answer/api method
.createInviteLink answer method take arguments:
Optional
Chat id you want to export invite link to
Optional. Current chat id by default
If you want to know what arguments an API method takes, see the IDE hint
Returns chat invite link on success
Edit invite link
To edit invite link, use Edit class-method and InviteLink class-mark. Or .editInviteLink
api method
Edit class-method take arguments:
Invite link you want to edit
Required
Options how you want to edit link
Required
If you want to know what arguments an API method takes, see the IDE hint
We recommend using services to save data
Revoke invite link
You can revoke invite link using .revokeInviteLink
answer/api method
.revokeInviteLink answer method take arguments:
Invite link you want to revoke
Required
Chat id in which you want to revoke link
Optional. Current chat id by default
If you want to know what arguments an API method takes, see the IDE hint
Returns chat invite link on success
We recommend using services to save data
Last updated