-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[new feature] set bot's nickname in the group #201
Comments
There will be many scenarios that we need to identify a room between wechat sessions. Your idea is an excellent solution that makes Wechaty can identify room between sessions. Could you please make an API proposal for this new feature in this issue? We can discuss based on it. |
Thanks! here is my proposal.
|
This proposal is not complete because the design leaks important information.
I think your Also, how could we get Display Name from another Contact in a particular room? This scenario should be considered in the design as well. |
And I forgot the most important part: does Web Wechat support change display name in a room ? |
I'm sorry I forgot the most important part..... |
@lijiarui What's your mean "forgot the most important part"? Did you mean you confirmed that Web Wechat does not support modify display name? |
I can confirm that you can use the "edit alias" feature on a user name. It does NOT seem to work on your own username by clicking personal profile icon BUT if you select yourself in a group and then change it this will seem to work. My phone also updates, so the information on updated alias is being sent to the network / propagated. |
For me , "select yourself in a group and then change alias" doesn't works in web wechat. When I change bot's remark in the room, it doesn't have any change in my phone. And, I found when using webWeixin, I thought I changed one's display name in a room, but actually I changed one's remark. So, when I change one's display name in a room, it works in all the room.... |
I think remark and alias are mixed up in the english translation of wechat webUI. Also when I checked just now, the phone did NOT update. I'm sure it did before... >.< I also enabled more debugging and don't see any messages when changing that field, so I think this maybe a client side only setting, or at least only shared with wechat servers and not echoed to other clients. |
|
All methods and variables in webwxapp that modify alias are named
In webwxapp, the user alias name in a room is named Even we can not set Display Name, we can still get the display name without any problem because this name is saved in the Room's To identify the room as @dcsan said before, we can set the display name on our phone, then get display name from Wechaty. Bingo, it worked. So @lijiarui it's still worth to go ahead for designing the API because of it will be useful even we can only read it. |
Oh, I'm sorry, should be #173 |
@lijiarui Is this issue outdated and should be close now? |
We cannot set bot's alias in a room, but we can get the bot's alias in the room. Learn more: FAQ |
neat hack. So basically you manually name your own bot something related to the roomname. |
yes,maybe is the best way so far. If you have any good idea, glad to hear from you ^-^ |
I'm trying to get room unique id for the bot.
Issue #90 has talked about the result of room id, @zixia says it is impossible to get the permanent id for a room when using the webwxApp API.
So, maybe we can set a unique nickname(wechaty called it display name) for a bot in the room, then we can use the bot's nickname in the room as
this room's unique id
.I found wechaty can set contact's remark, but it cannot remark one's name in the room.
So could you please add an API to set one's name in the room?
The text was updated successfully, but these errors were encountered: