Deleting system notifications from the local database. If the local database is not available, or the specified notification does not exist, the execution is considered successful.
Get system notifications from the local database
The idServer of the last system notification in the last query.
limit on the number of queries on one page, the default value is 100
Whether the notification is read
Query order
Default value: false. Indicates to search for local system notifications starting from the most recent system notifications. If it is true, search for local system notifications from the first system notification
Type
Mark the system notification read in the response sent from the server. Next time, the server does not need to store this notification as offline system message onofflinesysmsgs
The onupdatesysmsgunread callback is fired after flagging
Send a custom system notification
Note, the difference between custom system notification (sendCustoSysmMsg) and custom message (sendCustomMsg) is as follows:
Custom content for APNS service for system notifications, only valid for recipients of iOS devices.
Whether the notification is synced using sync webhooks. The default value is true
Custom content of the system message, JSON serialized string recommended.
The environment variable pointing to different types of configurations for state sync and third-party callbacks.
Whether push notifications is required. Default value: true
Whether the nickname is required for push notifications. The default value is false.
Custom content of the system notification, JSON serialized string recommended.
Scenarios are divided into private chat(p2p), group chat(team), and supergroup chat(superTeam).
Whether to send notifications only to online users. The default value is true.
true. Only sent to online users, if the receiver is not online, this notification will be discarded. It is suitable for the scene of "typing indicators"
false. If the recipient is online, the notification will be received immediately. If the recipient is not online, an system notification will be pushed after the recipient goes online.
Recipient account ID, or group ID.
Update system notifications in the local database
idServer of a system message.
Custom field
Status
Delete all system notifications from the local database