chore: fix jsdoc invalid types

This commit is contained in:
Pedro S Lopez 2026-01-05 01:40:06 -04:00
commit c13510e907
5 changed files with 7 additions and 7 deletions

View file

@ -1258,7 +1258,7 @@ class Client extends EventEmitter {
/**
* Gets instances of all pinned messages in a chat
* @param {string} chatId The chat ID
* @returns {Promise<[Message]|[]>}
* @returns {Promise<Array<Message>>}
*/
async getPinnedMessages(chatId) {
const pinnedMsgs = await this.pupPage.evaluate(async (chatId) => {
@ -1936,7 +1936,7 @@ class Client extends EventEmitter {
* 2 for POPULAR channels
* 3 for NEW channels
* @param {number} [searchOptions.limit = 50] The limit of found channels to be appear in the returnig result
* @returns {Promise<Array<Channel>|[]>} Returns an array of Channel objects or an empty array if no channels were found
* @returns {Promise<Array<Channel>>} Returns an array of Channel objects or an empty array if no channels were found
*/
async searchChannels(searchOptions = {}) {
return await this.pupPage.evaluate(async ({