AiursoftWeb / Kahla

Mirror of https://gitlab.aiursoft.cn/aiursoft/Kahla
https://www.kahla.app
Other
70 stars 21 forks source link

At api #71

Closed Anduin2017 closed 5 years ago

Anduin2017 commented 5 years ago

Support At system.

Caution: when the program is trying to detect if a message is 'atting' someone, it is based on the user's nickname.

So always pass the correct user's nickname.

If one group has multiple users called Anduin and I tried to at Anduin, all Anduins will be 'atted'. Please submit all Anduins' Id.

Caution: If one user changed his nickname, old messages at him will not be treated as at him.

Anduin2017 commented 5 years ago

@xxyzz Hi,

When you are trying to call this sendMessage API, you may pass the At argument.

Please fill your HTTP form this way:

Id=0&Content=yourContent&At[0]=userId1&At[1]=userId2&At[2]=...

If you request any change, please just review this pull request.

Thanks!