Get null alias from the contact
I have added a friend for some time. But when I get his alias, I get null. Like this:
const sender = await contact.alias();
console.log(sender);
I'm sure I added him as a friend and set alias for him. Look forward to your reply!
Have you switched the running device? In Wechaty, the data of your account is cached locally. When you thrn your app to another computer, Padlocal will not load your account data again because it will not log off your device when you exit your account. This means if you add a friend on your local computer,and then you run the bot on a server, you will loss This friend.
Oh, shit. So how do I synchronize data between the server and the local device? I need to debug locally before publishing to the server......