NextBatchstring`json:"next_batch"`// Required. The batch token to supply in the since param of the next /sync request.
RoomsRoomsSyncReply`json:"rooms"`// Updates to rooms.
Presencecommon.Presence`json:"presence"`// The updates to the presence status of other users.
AccountDatacommon.AccountData`json:"account_data"`// The global private data created by this user.
ToDevicecommon.ToDevice`json:"to_device"`// Information on the send-to-device messages for the client device, as defined in Send-to-Device messaging.
DeviceListscommon.DeviceLists`json:"device_lists"`// Information on end-to-end device updates, as specified in End-to-end encryption.
DeviceOneTimeKeysCountmap[string]int`json:"device_one_time_keys_count"`// Information on end-to-end encryption keys, as specified in End-to-end encryption.
}
typeRoomsSyncReplystruct{
Joinmap[string]common.JoinedRoom`json:"join"`// The rooms that the user has joined.
Invitemap[string]common.InvitedRoom`json:"invite"`// The rooms that the user has been invited to.
Leavemap[string]common.LeftRoom`json:"leave"`// The rooms that the user has left or been banned from.