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

problem with example #247

Open pogran opened 2 years ago

pogran commented 2 years ago

for this example "Parse all messages from channel#" I have error

contacts.resolveUsername error: {
  _: 'mt_rpc_error',
  error_code: 400,
  error_message: 'USERNAME_NOT_OCCUPIED'
}

Why i see this error, help pls

joeberetta commented 2 years ago

Hi @pogran all possible errors for every method are described in the telegram's official documentation.

It's your method https://core.telegram.org/method/contacts.resolveUsername

And answer to your question: This error means that you've passed channel's "username" which not exists in Telegram