Event API PrivateSendMessage - KonataDev/Konata.Core GitHub Wiki
Send or reply a message to a friend.
PrivateMessage
| Name | C Type | Description |
|---|---|---|
| Bot | uint32_t | Bot account |
| Friend | uint32_t | Friend uin |
| Message | const char* | Message content encoded in UTF8 |
| MessageId | uint32_t | Message identifier[1] |
The return type is an uint32_t.
Return a new message identifier if no error occurred.
| Error Value | Description |
|---|---|
| FAILED -1 |
Operation failed. |
[1] Message identifier:
For send use, please keep the value to 0.
For reply use, please reference the MessageId you gonna reply to.