2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-22 09:57:10 +00:00

fix: getUserChatBoosts

This commit is contained in:
danielperez9430 2024-05-30 22:37:54 +02:00
parent 65ef0a2fcc
commit 7e9ee42769

View File

@ -2253,9 +2253,9 @@ class TelegramBot extends EventEmitter {
* @return {Promise} On success, returns a [UserChatBoosts](https://core.telegram.org/bots/api#userchatboosts) object * @return {Promise} On success, returns a [UserChatBoosts](https://core.telegram.org/bots/api#userchatboosts) object
* @see https://core.telegram.org/bots/api#getuserchatboosts * @see https://core.telegram.org/bots/api#getuserchatboosts
*/ */
getUserChatBoosts(chatId, pollId, form = {}) { getUserChatBoosts(chatId, userId, form = {}) {
form.chat_id = chatId; form.chat_id = chatId;
form.message_id = pollId; form.user_id = userId;
return this._request('getUserChatBoosts', { form }); return this._request('getUserChatBoosts', { form });
} }