Fix update channel module (#5791)

* Fix getChats (#5779)

* Fix: getChats -> getChatModel -> GroupMetadata and NewsletterMetadata

* Fix module change

* fix: change wrong update module of channel

* fix: correct reference to pupPage in deleteChannel method

---------

Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
A. Rifqi Yarzuq Arfani 2026-02-04 03:36:16 +07:00 • committed by GitHub
commit e66d94efd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -1996,7 +1996,7 @@ class Client extends EventEmitter {
* @returns {Promise<boolean>} Returns true if the operation completed successfully, false otherwise
*/
async deleteChannel(channelId) {
return await this.client.pupPage.evaluate(async (channelId) => {
return await this.pupPage.evaluate(async (channelId) => {
const channel = await window.WWebJS.getChat(channelId, { getAsModel: false });
if (!channel) return false;
try {