You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/telegram.js
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1719,6 +1719,42 @@ class TelegramBot extends EventEmitter {
1719
1719
returnthis._request('editChatInviteLink',{ form });
1720
1720
}
1721
1721
1722
+
/**
1723
+
* Use this method to create a subscription invite link for a channel chat.
1724
+
*
1725
+
* The bot must have the can_invite_users administrator rights
1726
+
*
1727
+
* @param {Number|String} chatId Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
1728
+
* @param {Number} subscriptionPeriod The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days)
1729
+
* @param {Number} subscriptionPrice The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat (1-2500)
0 commit comments