zerobias / telegram-mtproto

Telegram client api (MTProto) library
MIT License
617 stars 136 forks source link

How to fix invalid peer id #209

Closed kingqi closed 5 years ago

kingqi commented 5 years ago

Got this error:

Error 400 PEER_ID_INVALID 2 5

But i am not using peer id as parameter, what is this error means?

Here is my code:

const getChat = async () => {
  const getInfo = await client('messages.getFullChat',{
    chat_id:200275452
  })
  console.log(getInfo);
}

library version: 3.0.6

azayek5 commented 5 years ago

You ever figure out what was going on?