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
@@ -1328,7 +1328,7 @@ class TelegramBot extends EventEmitter {
1328
1328
* Use this method to send paid media.
1329
1329
* @param {Number|String} chatId Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
1330
1330
* @param {Number} starCount The number of Telegram Stars that must be paid to buy access to the media; 1-10000
1331
-
* @param {String|stream.Stream|Buffer} media A file path or Stream.
1331
+
* @param {Array} media Array of [InputPaidMedia](https://core.telegram.org/bots/api#inputpaidmedia). The media property can bea String, Stream or Buffer.
@@ -3359,11 +3359,28 @@ class TelegramBot extends EventEmitter {
3359
3359
returnthis._request('sendGift',{ form });
3360
3360
}
3361
3361
3362
+
/**
3363
+
* Use this method to sends a gift to the given user or channel chat.
3364
+
*
3365
+
* @param {Number} userId Unique identifier of the target user who will receive a Telegram Premium subscription.
3366
+
* @param {Number} monthCount Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12.
3367
+
* @param {String} starCount Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months.
@@ -3401,8 +3418,8 @@ class TelegramBot extends EventEmitter {
3401
3418
/**
3402
3419
* This method removes verification from a chat who is currently verified [on behalf of the organization](https://telegram.org/verify#third-party-verification) which is represented by the bot.
3403
3420
*
3404
-
* @param {Number} chatId Unique identifier of the target chat
@@ -3659,6 +3676,116 @@ class TelegramBot extends EventEmitter {
3659
3676
returnthis._request('transferGift',{ form });
3660
3677
}
3661
3678
3679
+
/**
3680
+
* This method posts a story on behalf of a managed business account.
3681
+
*
3682
+
* Requires the **can_manage_stories** business bot right.
3683
+
*
3684
+
* @param {String} businessConnectionId Unique identifier of the business connection.
3685
+
* @param {Array} content [InputStoryContent](https://core.telegram.org/bots/api#inputpaidmedia). The photo/video property can be String, Stream or Buffer.
3686
+
* @param {Number} activePeriod Unique identifier of the chat which will own the gift. The chat **must be active in the last 24 hours**.
* This method edits a story previously posted by the bot on behalf of a managed business account.
3727
+
*
3728
+
* Requires the **can_manage_stories** business bot right.
3729
+
*
3730
+
* @param {String} businessConnectionId Unique identifier of the business connection.
3731
+
* @param {Number} storyId Unique identifier of the story to edit.
3732
+
* @param {Array} content [InputStoryContent](https://core.telegram.org/bots/api#inputpaidmedia). The photo/video property can be String, Stream or Buffer.
0 commit comments