File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
10
10
* copyMessages (@xjx0106 & @Sp3ricka )
11
11
* setMessageReaction (@Sp3ricka )
12
12
* forwardMessages (@danielperez9430 )
13
+ * getUserChatBoosts (@danielperez9430 )
13
14
14
15
2 . Minor changes: (@danielperez9430 )
15
16
* Refactor methods order
Original file line number Diff line number Diff line change @@ -2208,6 +2208,22 @@ class TelegramBot extends EventEmitter {
2208
2208
return this . _request ( 'answerCallbackQuery' , { form } ) ;
2209
2209
}
2210
2210
2211
+ /**
2212
+ * Use this method to get the list of boosts added to a chat by a use.
2213
+ * Requires administrator rights in the chat
2214
+ *
2215
+ * @param {Number|String } chatId Unique identifier for the group/channel
2216
+ * @param {Number } user_id Unique identifier of the target user
2217
+ * @param {Object } [options] Additional Telegram query options
2218
+ * @return {Promise } On success, returns a [UserChatBoosts](https://core.telegram.org/bots/api#userchatboosts) object
2219
+ * @see https://core.telegram.org/bots/api#getuserchatboosts
2220
+ */
2221
+ getUserChatBoosts ( chatId , pollId , form = { } ) {
2222
+ form . chat_id = chatId ;
2223
+ form . message_id = pollId ;
2224
+ return this . _request ( 'stopPoll' , { form } ) ;
2225
+ }
2226
+
2211
2227
/**
2212
2228
* Use this method to change the list of the bot's commands.
2213
2229
*
You can’t perform that action at this time.
0 commit comments