alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
630 stars 113 forks source link

channels.getFullChannel UNKNOWN_ERROR #239

Closed danielehrhardt closed 2 years ago

danielehrhardt commented 2 years ago

Describe the bug I want to get a fullChannel Information

Code example

const selectedChat = await this.api.call('messages.getAllChats', {
      except_ids: [],
    });

const config = {
          _: 'inputChannel',
          channel_id: selectedChat.id,
          access_hash: selectedChat.access_hash,
        };
        try {
          fullChat = await this.api.call('channels.getFullChannel', config);
        } catch (error) {
          console.log('error', error);
        }

Expected behavior get full Channel information

Screenshots image

Context:

danielehrhardt commented 2 years ago
 const fullChannel = await this.api.call('channels.getFullChannel', {
      channel: {
        _: 'inputChannel',
        channel_id: this.selectedChat.id,
        access_hash: this.selectedChat.access_hash,
      },
    });