zerobias / telegram-mtproto

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

messages.getDialogs does not work in beta nor alpha #231

Closed ktjd123 closed 5 years ago

ktjd123 commented 5 years ago

In beta it gives

[5.576] Error 401 AUTH_KEY_UNREGISTERED 2 5 [6.373] Error 401 AUTH_KEY_UNREGISTERED 2 5

this error even it's logged in with sessions

in alpha it hangs over forever

the code is

export const getChats = async (telegram) => {
  const dialog = await telegram('messages.getDialogs', {
    limit: 1,
  });
  console.log('here');

  const { chats } = dialog;
  const selectedChat = await selectChat(chats);

  return selectedChat;
};

and I never see here (sorry for poor debugging 😂)