Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to createChatInviteLink #206

Open
victoraury opened this issue May 27, 2021 · 1 comment
Open

Add support to createChatInviteLink #206

victoraury opened this issue May 27, 2021 · 1 comment

Comments

@victoraury
Copy link

victoraury commented May 27, 2021

The method createChatInviteLink generates a invite link that supports expire_date and member_limit parameters. The current method exportChatInviteLink doesn't. See documentation.
This capability is useful when filtering which users have access to a Chat, reducing the need to kick or ban users from it.

@diogo-palma
Copy link

diogo-palma commented Jun 2, 2021

in node_modules/telebot/lib/methods.js after exportChatInviteLink:{ .... } put this

createChatInviteLink: {
      arguments: ['chat_id', 'expire_date', 'member_limit']
    },

usage:

 bot.createChatInviteLink(
      chat_id, expire_date, member_limit
   )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants