Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Event API PrivateSendMessage

TheSnowfield edited this page Jul 24, 2021 · 1 revision

Send or reply a message to a friend.

Name

PrivateMessage

Parameters

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]

Return

The return type is an uint32_t.
Return a new message identifier if no error occurred.

Error Value Description
FAILED
-1
Operation failed.

Remarks

[1] Message identifier:
For send use, please keep the value to 0.
For reply use, please reference the MessageId you gonna reply to.